B. Unix as Programming Language: 12 Questions to Answer ------------------------------------------------------------- Here is a Unix programming solution to this problem. We use exactly six simple programs, all available on any Unix system: Simple Tools (programs that perform an action) --------------------------------------------------- grep - find and print (line oriented) cut - extract fields from lines sort - sorts based on any selection of fields uniq - removes (and/or counts) duplicate lines head - selects first n lines wc - counts chars, words, lines Combined into Pipelines ------------------------------------------- Demo grep: search for stn=brockton Demo cut: select the time field Idea of pipeline: assembly line processing: +------------+ +------------+ | grep |= data =>| cut |= data => screen +----^-------+ +------------+ _| |_ [sched] pipeline syntax: grep stn=brockton sched | cut -d";" -f4 Now Answer the 12 Questions by using six tools and pipelines