Recently I was trying to figure out who was most active on the IRC
server I frequent. IRC by it’s very nature leaves log files so that you
have a record of your conversations in your control. So you can perform
some processing on them to determine various statistics. This is a one
liner to compute that.
I’ve been working on a fortran codebase with a lot of code duplicated
between subroutines, so I came up with this little bash function using
awk to extract subroutines, so I can find the difference between them.
This will be brief introduction to awk and it’s many uses. I will show a
few brief segments about various uses of awk and when it comes in handy
for certain tasks. For more detail one should read the
Awk User’s Manual.