Weeks 5 - 7


Notes: 

Assignment #3 - Beginning UNIX exercises (part 2) -

due date on Assignment 3 will be Friday March 2nd.

Same instructions as always.

First Quiz: Monday March 5th.

Assignment 4  -- due MondayMarch 26 (beginning of class) (may migrate until March 9th)



boolean grepping ('and', 'or' and 'not')

wildcards and the like

enumerated repetitions and remembered strings

More fun with grep

sort with uniq

cut

beginning sed

deconstruction and reconstruction using sed and elsehow [1]

Simple loops

Here's a bit more about special characters

play with sed and grep 

Putting commands in a file and receiving parameters from the command line 

putting commands in a file


funny thing: 

$ echo {a..c}{a..c}
aa ab ac ba bb bc ca cb cc

For extra credit: come up with a "heuristic" process for finding "stuffed" crossword puzzles -- those with no blank spaces, and words in each row and column. Alternatively, find other 5x5 puzzles and/or find an m by n puzzle for either m > 5 and n > 4. (7 x 7 would be fun.)

A R E A
B E A R
E A S T
T R E Y
D O O R
U R G E
M A L E
B L E D
Q U I C K
U N M A N
I M B U E
C A U S E
K N E E L

Various resources (and word lists) for use in this class (Note: addresses for all these have changed -- so stay tuned for details!):

See here.

Here are some remarks about some of these.

Other noteworthy files:

/homes/ddailey/public_html/data/ST_Place $ wc -lc /homes/ddailey/public_html/data/ST_Place
 25375 332036
/homes/ddailey/public_html/data/places2k.txt  wc -lc /homes/ddailey/public_html/data/places2k.txt
  25375 4212250 
/homes/ddailey/public_html/data/dist* $ wc /homes/ddailey/public_html/data/dist*
  88800  355197 3107986 /homes/ddailey/public_html/data/dist_all_last
   4275   17100  153900 /homes/ddailey/public_html/data/dist.female.first
   1219    4876   43884 /homes/ddailey/public_html/data/dist.male.first
  94294  377173 3305770 total

Extra credit: 

Find some unix/linux related topic (see below for clarification) that we are not covering (in depth) in class. Be the first to "reserve" that topic, andthen  develop, complete with screen shots, and well-formed English sentences, a 2 to 7 page piece of documentation about how one can go about using the particular tools you've investigated to accomplish something worthwhile in Linux/UNIX.

The topic should involve a set of related commands (like the pnm and pbm utilities), a particularly complex command (like awk, but don't actually use awk since we'll be doing it in class), or a subject matter topic, like lexicography. Or it could involve showing how to do something useful, but nontrivial, like using awk to automatically create a web page having links to all the images in a directory.

Email me first (on or before April 4th) with a Linux/UNIX topic you wish to reserve. 

If you are the first (in the class) to choose such a topic and if the topic is deemed suitable by me, I'll email before April 11th to approve the project. 

Print it and hand me the paper before the last day of class.


[1]  Concerning 'elsehow'  from dictionary.com

Productive of a number of handy compounds that somehow never got traction or have been suffered to fall from use: elsehow (1660s) "somehow or other;" elsewards (adv.), 1882, "somewhere else;" Old English elsewhat (pron.) " something else, anything else;" elsewhen (adv.), early 15c., "at another time; elsewhence (c.1600); elsewho (1540s). Among the survivors are elsewhere, elsewise.

Dictionary.com "else," in Online Etymology Dictionary. Source location: Douglas Harper, Historian. http://www.dictionary.com/browse/else. Available: http://www.dictionary.com/. Accessed: March 2, 2018.