probably don't need perl. there's a shell command that can do this.
% man sort
so the whole thing might go something like:
sort -n /etc/hosts > /tmp/hosts.sorted mv /tmp/hosts.sorted /etc/hosts
In reply to Re: sorting /etc/hosts
by thraxil
in thread sorting /etc/hosts
by tmbailey123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |