Lecture 5 in brief

Lecture 5. General

Examples presented in class. To unpack archive filename, do "gunzip filename.tar.gz", then "tar -cvf filename.tar". This will create a directory structure with the examples in it. You need to be on a unix machine.


AWK (GAWK)


Basic gawking

To sum up. There are (at least) three ways to run an awk (gawk) command.
  • On the command line, as in awk '{ print }' textfile
  • By running your script, as in gawk -f <gawk script name>
  • by running an executable file that contains your gawk scripts, see example gyration.awk

    Return Home