10 UNIX Commands
less
grep
egrep "/bin/ps$|/bin/netstat$" myfile.txt Select lines ending by /bin/ps or /bin/netstat
awk
awk '/firstmatch/,/lastmatch/' myfile.txt Select a range of lines, starting with the line containing
the string firstmatch and ending with the line that
contains the line lastmatch
awk '{print $NF}' Print the last column on the line
sort
sort -n Sort Numerically
sort -u Sort + Unique
sort -k 5 Sort by the 5th field
sed