Command-line Knowledge Base

AWK

Change field separator
awk -F ":" '{print $1}'
Print just the Apache log lines from my machine
cat error.log | tail -n 10 | awk '/194.165.17.8/ {print $0}'
NULL