Weeks 8 - 10

ever awk-ward


Assignment 4  -- due Monday March 26th Wednesday March 28th (beginning of class)

typing multilingual things in linux

putting commands in a file. And looping through command line parameters.

We'll  look more into loops and so forth...  (see, also, here for review)

Perhaps a reminder about more advanced sed (multiple lines, tabs, etc.), including breaking things up (and scrambling)

New: various useful flags for grep

Also,

Assignment #5 due date: Wednesday, April 11th

Second exam:  Friday, April 13th

Assignment #6, due date:  Wednesday, April 25th.


awk:

From Webster's 1913 dictionary: (see http://www.bibliomania.com/Reference/Webster/index.html):

(Awk) a. [OE. auk, awk (properly) turned away; (hence) contrary, wrong, from Icel. öfigr, öfugr, afigr, turning the wrong way, fr. af off, away; cf. OHG. abuh, Skr. apac turned away, fr. apa off, away + a root ak, a&uor;k, to bend, from which come also E. angle, anchor.]

  1. Odd; out of order; perverse. [Obs.]
  2. Wrong, or not commonly used; clumsy; sinister; as, the awk end of a rod [Obs.] Golding.
  3. Clumsy in performance or manners; unhandy; not dexterous; awkward. [Obs. or Prov. Eng.]

awk -- basic usage

specific lines within a file

standard i/o

fields in awk

records in awk

passing parameters

more on parameters

a bit of arithmetic

comparing awk and other approaches