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.