TBH I'd lose the Perl altogether:
I'm sure you could lose the rest of the pipe too but I never got my head around AWK's asort() for cases like this.awk '{ file[$7]++ } END { for ( v in file ) print file[v], v }' /var/ +log/httpd/access_log | sort -n | tail +10
/J\
In reply to Re^2: [off-site] Bash + Perl oneliners basics
by gellyfish
in thread [off-site] Bash + Perl oneliners basics
by chanio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |