Next | Tricks of the Wizards | 126 |
Well-known to Unix shell programmers:
# Sort file names by file size
ls -l | sort -n +4 | awk '{print $NF}'
# Sort output of SOMETHING from most frequent to least
SOMETHING | uniq -c | sort -nr | awk '{$1=""; print}'
Next | Copyright © 2003 M. J. Dominus |