Laralee and Kyra seem to know all of the spells from the Harry Potter series, but I have a whole different set of incantations– stuff like this:
grep “POST” forms.log | sed ‘s/ .*//’ | sort | uniq -c | awk ‘{ print $2 ” – ” $1 }’
Yay, shell scripting! I was faced with the task of parsing a gigabyte of log entries, counting the number of posts to an external API and organizing them by date. Done, in a single line of black magic.