Unix and Shell Programming Lesson Plan
Unix and Shell Programming Lesson Plan
question to be set from each UNIT. Two questions from each PART is compulsory. It is ad ised to arran!e for a demonstration or practical session at the end of e ery "#I$ for I hour for the students to !et a practical insi!ht into the "#I% commands tau!ht. UNIT 1 The UNIX Operating System: The Operating System, the UNIX Operating System. The UNIX Architecture and Command Usage: The UNIX architecture, Features of UNIX, ocating Commands, Interna! and "#terna! Commands, Command structure, F!e#i$i!ity of Command usage, %an $ro&sing the manua! pages on!ine, Understanding the man documentation The Fi!e System: The fi!e, 'hat is a fi!ename, The (arent Chi!d re!ationship, The home )aria$!e, !d, "d, m#d$%, %md$%, a$so!ute pathnames, re!ati)e pathnames, &', The UNIX fi!e system ( Hou%' UNIT 2 *asic fi!e attri$utes: &' )&* +d, fi!e o&nership, fi!e permissions, "hmod, directory permissions, changing fi!e o&nership. The )i editor: ,i $asics, Input mode, sa)ing te#t and +uitting, na)igation, editing te#t, undoing !ast editing instructions, repeating the !ast command, searching for a pattern, su$stitution ( Hou%' UNIT 3 The She!!: The she!!,s interpreti)e cyc!e, She!! offerings, (attern matching, "scaping and -uitting, .edirection, -de,-.u&&, -de,-tt/, (ipes, tee, Command Su$stitution, She!! /aria$!es The (rocess: (rocess *asics, ', System (rocesses, %echanism of (rocess Creation, Interna! and "#terna! Commands, (rocess States and 0om$ies, .unning 1o$s in the $ac2ground, .$"e: 1o$ e#ecution and o& priority, 3i!!ing (rocess &ith signa!s Customi4ing the "n)ironment: The She!!s, "n)ironment /aria$!es, The Common "n)ironment /aria$!es, The initia!i4ation scripts. 0 Hou%' UNIT 1 %ore fi!e attri$utes: Fi!e Systems and Inodes, 5ard6!in2s, Sym$o!ic in2s and &.,um2'#, %odification and Access times, find Simp!e fi!ters: The samp!e data$ase, %* he2d* t2$&* "ut* 2'te* 'o%t* u.$3* t% 0 Hou%' PART 4 UNIT 5 Fi!ers using .egu!ar "#pressions66%e and 'ed: 6%e , 4RE and ERE, 'ed, ine Addressing, Using mu!tip!e Instructions, Conte#t Addressing, 'riting Se!ected ines to a fi!e, Te#t "diting, Su$stitution. ( Hou%' UNIT ( "ssentia! She!! (rogramming: She!! scripts, read, using command !ine arguments, e7$t and e#it status of command, The !ogica! operators 88*99 66 Conditiona! "#ecution, The if
conditiona!, Using te't and : ; to e)a!uate e#pressions, The case conditiona!, e7 %, <0, !h$&e, =o%, 'et and 'h$=t , the he%e document, t%2 , de$ugging she!! scripts using 'et )7 ( Hou%' UNIT 0 A!#6an ad)anced fi!ter: Simp!e 2!# fi!tering, Sp!itting a !ine into fie!ds, %$.t=, )aria$!es and e#pressions, Comparison operators, Num$er (rocessing, /aria$!es, += option, The 4EGIN and END sections, *ui!t6in )aria$!es, Arrays, Functions, Contro! F!o&, ooping &ith =o%, ooping &ith !h$&e. 0 Hou%' UNIT > (". the master manipu!ator: (". pre!iminaries, The "ho function, /aria$!es and Operators, The String hand!ing functions, Specifying Fi!enames in command !ine, <?: The defau!t )aria$!e, Current !ine num$er <. and the .ange operator@AB, ists and arrays, Co%e2"h, ' &$t, Do$., de"2b$.. &, 6%e , Associati)e Arrays, .egu!ar "#pressions and Su$stitutions, Fi!e 5and!ing, Fi!e Tests 0 Hou%' Te7t 4oo# EUNIXFCo."e t' 2.d A &$"2t$o.'G* Sum$t2bh2 D2'* 1th Ed$t$o.* T2t2 M"G%2! H$&&* 200( 7Ch2 te%' 168.8, 8.9. Ch2 te% 269.8,9.9, 9.:69.;, Ch2 te% 16:.86:.89, Ch2 te% (6<.86 <.=,Ch2 te% 06=.86=.;,Ch2 te% >6>.86>.8?,Ch2 te% H6;.86;.;,Ch2 te% 1068?.86 8?.@,8?.>,Ch2 te% 11688.8688.@,88.A688.=,Ch2 te% 12689.8689.8?,Ch2 te% [email protected] [email protected]?, Ch2 te% 1168:.868:.8<.Ch2 te% 1>68>.868>.8A,Ch2 te% 1H68;.868;.8=B Re=e%e."e' 4oo#' UNIX 2.d She&& P%o6%2mm$.6* *ehrou4 A. Forou4an and .ichard F.Ci!$erg, Thomson, 9??A UNIX 8 She&& P%o6%2mm$.6* %.C, /en2aeshmurthy, (earson "ducation, 9??A