0% found this document useful (0 votes)
72 views31 pages

Linux Lab 8 PRGM

Linux lab

Uploaded by

Faijaz Nilgiri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
72 views31 pages

Linux Lab 8 PRGM

Linux lab

Uploaded by

Faijaz Nilgiri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 31
Be Ww ot a abet arr Sil b ars St fe fomman MN ; cad, mv, emp , wey gpl, a. Uda a hat fig ty Whe the fi tetig Bustin %. eeu Heed yon b siren onl dome odo ! iid Alen 4 , curved ae etki en ta at tie foal cPu disfomadion "le (reeoier bye. é Blow menor wufunalion - es Vy” Vl Pa lo aa Ble A fl (lduied es ca ui Bory, “Ge bi Peed: | wr fad wot “Wate f be ie atl Woupt do implemen 4 bite weet Beupl A to sumone the files tubule has aes i Ms Bw lis Wile va pat faid Ale Buon af be wane a ¢ 2 (na nun ber » ee ce ont eagt dal te de ok dire gen ef : i Raat Wlaell ae fe police | uk wa Wall’ opal bp put Hin tas Suh dalle if dhe Min detqumert Ex dlo i), oA) aa wik a helt tbo Bimelale Abe A pepe cpm, Bap): black he Olall foopl. Bhp 2: tse vm to somoue Hoe fils avd deeclories 3: Ube 4 is tore [Boece tp: vbe Oe ee He file 0, cbvieckoriss OBlep 5: cbse emp to tmapare” the fia Be hep ¢ : Use Swe to cbut the rounber pvnvboes 4 dui ore rumor 4 Chara Bep+ ue dif oo dod be Affi Sela Bh 2 0 met Cope : Blip the proci Ocdpal U "aaudle ‘Isa, local [lod ~) be Cualiy fele a. Cejilhy pele a Cefh al a Mea Fle 5 be Lonyd ble ele 1 Cou’ 1 Onl Eh los ; 4 Eine | — to. Ful hots ; fe the, thecce ae Sp olay | She ip aki fle a | # Buy tb ee Cope he ‘ a aie Fb, | Compe re cal i u ued couk oH . Ane p r 4 if tl Fulix Me cherie 2 f 2 adsl smash p al oe tyl at te f ee ke sh p “ rot an v he sh rssh os-bet fo Fa eh i Seba 0 Ye A ecleh Jiaex ‘ak " ay sh oy lable pegmc gh., » 5! > bleh ey it sh ms ch empl i “she ce", deny ii of, hy 6h oh ph A oh ‘i m nati! inew 6. of raf 3 ci “ald ext Saye od et tna Leo prs " Fl valsh, mon jE Saeatertens Pq" Ssh 2 robber COPE IA Gr while tee do “on Guang Poe” echo “2. Cele” ecko 7 3. © he eto “As Me File." ttho." 5. “Compare ale tile * ‘6. Word Couiel echo ‘7. Blet ; | echo “¢. iia” | echo “Ds Reine. Cele ' | cho “10. Exit.” : | echo “ Enloe > le cherie: : : | seead chesice : | Case Aehetée tir 1) vials Diey Dcpalars: (DO mv a2 ads | Demp a3 ay; 16) we-a3: 1) Split — 1 ee ©) dell a3 ah;i v Ton we I. Gscaleng Fite o Quiglty fe al 4° Mone iy 5. Congr Fo 6. toni eeu 7 Spll s- kflocree a. Keine tik o Ext bi the Chote * 2 2 2 mite f m2 ‘Shr catsh’ «Bi obet al etd mo “ sa wah 72. i spi. Pn a m2 fet rp leh” ps mash 96 sh Ped Aa sh mal Tish rs or . sh Sumb £ fe Sh fa. rn rail Sh rambOeh 3a bi bet t rth Cece hoon if prqm bh, tery ty 1 Linux 55 Sha. bed Peete ds we ae «Bm ote (in She Sacdyl it Bicw.re6 Sh * pola mete Sh ree pal gh * pavt Gd el, x00" A dvb greed 2h, imt.sh panes ESae done Rel * fhe ben preted Bus afl oudgel wot Pale + Aon: T wie a. Blull Sorpt t Aho Pe Apne wcorfgunston Abell Oe Gee |: Bhat dhe hell oupt . itp 2 = Use Ha forminel ov a teblor : foe ercling dle pllowsers Covimnetiee ep ae Clape dhe * i Me apadtel f dua a the fo eal vn wee. OStep ar: She vahue f 2 SHELL SHOE. EZ OSTWE, -, Sep Gg: che pod Conrimaind pe reese : euorkung aw Ex .No: 2 2 7 YN 7 $ lp 6. ebe “pe ep fo; cat [po] mem to duly fhe ofy _ koro Ww Lyndon! ci SR : Blip 1: Blep he (rows cud it: 7 400.0618 52 elt 66 SH 0M 1 WRG. ey [Meet un: wove Paswuione * vse pec 23 12 16°56 foot HEE to, io) { loan te ll, 7a 2 bcalhed i fier aw . Uma ia local feest ASS tol “oni adhe Frade reo lcallusl oJ § ebrvewed navdhea 0S Cnowelhe Oe loca Ihest|¢ cb |] Sh 41.2 ¢ eack | oul , ravdla ts @ breallogl ye cette lia aaa) ef ele vi echo -€ eusse F slall few Tranelles SO Avcelhss, alg al 2 dye “ fl ‘acer, als, Cravetha, ae (ll) echo 2" f “ if 4 Apes ice ee fe bs Spe rancher 1 seabhest « 4 cclo Ab panH” [pth + 1 sr ea (bur? /] bus He ee ethba | {61/ Shin Whene (navel hal §/. foe ol [bri : [homered bocin Fo ws S@ focalbest I4 ttle -e" + cre do hereatt Ainecly spud { Cralhe is 6 tle wd edlo -e° surralty Coe F mreaser oF (s)" funadty Caged rae 68) y Creal tes Ss alee comps oP fr epu L fvmobee . hats @ Aseol -53 ek poe / e0¥ine (ocling : Legname id wn whoo gh evil so echo -e “ cwent Aull : $ sect” clo 4 tome echo -eS Sy echo ves es . ‘fe cee parr: $ ITH” ele € aupeeat olcedosy + gud!” ‘cho -€ vole ously boged ¥ nous ser Ce)” vat / “€" Cong ale fb ifembi : ead mece | re ole ~ € Commebot mene cofinsatin ct / proc 7h eve nfo d Ce ; fu be abou (veqeure fas been cool Bec ely owe! fo. sett Ara [eon vvefied: 0 ocesso7 + Tole wid : Cerwwne lull Cpe fo) 16 lode 156 Mrvdel name ele) Core (1m) 19-2020 epoe ry Adepfa 4 mievecede -OK Ic Cpe Me 3 24 IS | Cache sig + 2612 LB | Plusial Sd +0 Sli 4 Core | 6 CpY Coveg 3 2 lecd tO. inital opicie +0 pu ff tye. eocdenhen 40s epee ri if , we I i i Mags + Apu ume de ye Ase msy Pre ince ox ape sep inter Pye mea Comoy pe pose 36 eflush S aeel immx fesy 3se sse2 so hb fer f Syscal nx sete f ‘ cp Im Coutdart fee guch —yta)re? peb ts pad replatoplig hcp ke al EX No :3 [pate : Pipes Be . C SEDIRECTION AND TEE companibs. Alin : / To wvesk the Bell Qtoupt 26 pri nent Hs fle gy dace, and hee Coiivinbadl Bhp 1 Blak the Wlll Aoupt 2. tye He -dviraciedl 0 0 adhe me eoeuing Hu aa) commode Obeep 3: the sederechion C&.?> Lonumands Aulps * nedveich Bla ouspuk Tyee Cod 2 $1) tommandl fore raduneck Lhe ouput : - Clap 4 tlie Alu pee fe Limp , to ceolvicel. Boe plpul one rn b auth fee “it UF Weep Ga Blay Hu prscess ; talpad Pes Rerleciddeso avd Tee lComunrandh yes > wave eee uv Ke xe Ya Pipes ° Raat wipe! sedvuclion 3) dard bulpul sede hed i W Tee Command Ral Inte ewe Choiee +2 dl wnt pedbnibein Aad Ze Ae ee MY tk tenfent { fe 1 os bojpek A CAF Uonm LINUX PROGRAMMING Pipe , Keelucrgn and Tee lovmdiot FR RE KH we Ye wy ) Pipes 2) Btircland Lindt peclececliea 2 Fedo ai pee SP burl Luby abu clsice 13 bed! pecluchen Lommutuf me vw Re o& The Acree hou Chet ‘3 puclevedl afr Ae embed of AG | Linux PROCIRAMMING MT ee comands” "9. en Pipes, Veclead bis pay ; Me we ry * : > Pipes * "2d, fF (Btawdaud uypal 8) Wondevre! PAE Glee * 5) Quit” “1 Faker ajece chstie +” g Kew ye owe eh ee peelere ii " oulpal secclicclew ” 7 e Cavnvsand ‘ pipe u rere | clio seh eho" the cided g ot comunad L3 spat anche command a | 1S-¢ | repr Aa. ” ancl veel eapucl eclecccluin ” “ S$ = i HOF TREK kek ey ee RR” echo “Ube tontinl q jee ra esipu fo ecb toh chy 0 tonwald Sh warn, Sh lif f. eres cll feb Lun ~ echo“ © welpud pee oe lon echo 8p ene ERE” tho * Che ewer vee db peslaceled Fo fi? OER PAIAIG. SYST eM che “The toukint of fh as” oat fo o> fy cat f) sh pgm 3. sh elif fob 43 fen echo “ Tee Conumand! “ ” tho“ vn eeyy ow athe = Bedviecl OSlicdad oalpel of |S conmand de awe fhov fete demp in (s (fee tent p J : echo * The content df dempl “a! cat emp J else “e cae Whreong Chore " Pi q Poul: cllus the valboue proper Aas beun coucctell Auccesfolly cuel She uk put Aes pe Voafred . Ex.Noi4. Date : din | bo wil ok CBhulk es it fore cdaple ing ewcwrd date Dale Aart Blip * * Clo! the Qthall Berit ap 2 2 Use Nhe feunival or an oelil fe preci Lue flowusig Coninands. Oblep 3: ulse Hoe dake , loans le pewd, Qslip 4: Baur grea am. Glep ae Slop dhe purccess LISTING EWES Anlb DIRECTORIES puctpek j gh pougnd S Cree ee ns fiend Be Dasa lay late , chooane, t 4 Cee eH sled teh teb to lite 06 (ST 2018 Bila dale, Arcxnae ilig fod Ove eles ; Re BREE RRR AR WR J. Ausgl A CAV Cue 3 Bg dt : ‘tendbers Beagle = mae Lay Me ft i Doe ours . | * ce PRY we OR YO RRM EK wwlucle Jeu do tthe “ Lisfley dete, Usooname Laskin Mt ee aad Qérectoriis echo * BR eR ee new ” echo a eclo Dopley ex 0 lata” id cased et Casa = Aeiplag feb tat” echo * A Bekele the preset verlag ear” a echo * S . kxit ” ecko “ fEnkev bls choice: ” gead alice Care 4 chee 4a 0 date 5; 2) wWheami ss Dis y A) pod 5) entk:; esac clepe « EX.NO:9 ole [PLEMENT THE FILTER. COMMAND [ein Ine to wwele a Oshetl dough ds ot é Be je ccommnnecea A { jerillun * ostp + Blank the shetl obo . ep 2:Unw Me on or on odin fe. krkecteirg Hee falosusia conan ctirels. lutip 2 > Call. vat aml. “file 1 cuff. ome dint in oh ep hs Use Lhe “pep tanmand to fil, te bak ; Obtep 5: step lhe fow : Coding + ‘wea a echo « Eth, eres . i echo“ REAR KK REMY" atl “D boeap lle ” . Cea teln “9 We illen ” io aun 7 tho <3) Cub" flee echo") ty iter’ ctho “Luloe qe cheovie ” fuad a teal than echo * Goup fille . echo . RRR KR ne” tl “Enloe fle filbname:* Ca ine! [wan dha galraltort fod 4 hp yr td 4 Filler Cmands lye ye em ee ) Coup lle 02) we ells 3) Lit fulla 2 Tr fil Pai Lecv choice : Od Coup fits [Fawn ax 2b He flame fe file ile eer4 p orl ie ¥ p ld wt OTe foe Fite os. We fle ) Hr ee ey —e—_—_—_———_——— vcal ji | : oe a 4ftle ! he pane sh lif 4a" = 23 shun cere “We oltec” echo " %* wayne” cho * the (oulint af fle 1” eat fee ' t¢ Niche “Ward count f the ft we fit 4 sh pyns sh elf [*ga"2a] fer tho * cu [then " tthe © wea vngg.” edo“ Conliut o Be ck jit ) i echo “Bolaig melee from He f& r cat ~Cl-3 fr ak pre "5 sh elf Ca" = a] then tel “Ta ter . tthe “ Changing Hee cose” tthe « red, : We [fr “[a-z]'"(a-z)" il © Incowudk chore " Resall hes the cabour bye Das Meer Cotecabiced (Broceers ly auel Ale Ccstpat Aros Fe Aue! JE INO: 6 7S ie Ker Moye STME ZERO f Byres FILES Ain Te wih dich ge 4 Blatt soul te reune Ba fli ke sy Abexitlan OF go dys blip 1 Ostnk 4, Chill’ ounl Ms [Are lol al fo ont : ollouce Comsrcnds Sep 3 “sade ihe fle. “epee the a fy ‘fu ‘tind sumo there dis Mik tee & ff Holerank 4 chek bed pe ten covtinand fp Ree ae 0 wm echo ae j ee mt Hhuqus fle ” a dow si in ‘Eg! WEP §i-a1-s4i teho “ Fle & ub pee pe ole «fut of fl cafler nemovisig the yo Ayla fil” Came pa ee eee Vay ae? Its Vers oe 5@ cablod J 10 oh pans gh oa gee ft file ep de bike il i ihe oy a Me eee 2 file: xf wt fan: sh. “Gtk 8s. bl m 8 qnm3. sh, high | Zum +S ‘ cate 6h) eal Id pyre, ch 2h i byl, My, pe sh r sh 3. 5h Aa sh PASE terme. hd Ard srqm5.6h° eupergls det €2 ae a ‘ch sults sf paar Be nee ae) yr” niles Sa det Pit lw tech nde Prgmnd. sh sdeted fash laine 55. ony ren sh sitrt Fadil ices. of ponerse Sh prignam ‘sp jie. ah Ainunt. sh. galish spite “ssh. tle Prepon ts “samuel p 4 Rls wafer remount] Ble ay ge Le RR HR RESULT * Thee Me abl J Aun erccubed Geaalhy i eedpud As cn a | Catal , | | Crawly s@balled ~J& éh rqr 4¢h. Gon fvidiidul dig Enbx Hu number 3456 the Chum of east Us 09 Cc wandloa 15 bocallredt “Js [pce [oO OF Monon Digits OF A A - WEN NUMBER _—— Ge Ao were 1a hell ori & fud Me Sun af, enhiuilaal agit fa geen pum ber Ad witllun: step 1: Blank bu hill Aout Shp 2 + Ube lhe Loeinel ov am adlon fv Cpe ‘f the Ioblocuer Conmanell - H idiucbucl ai Bepheate tw db ae tp 4 AUP tha indice! muothers sep 5: lag Ble gush Aer 6 Bop “the veces Codting: echo “bon of vidual i. ocho RHR RK HE Ky ney? cele « Euler the nambe, ” eal n Sum 20 ars Pag c gn sop fe exp $nZ lo’ , Suin enor § fu + § x 1 > eran tn Jr" ecko «The Sum of $a us $/Se0n" Resa Aas hee ertented Chas the valour program e Ail red ‘at sat oe hen a: Verifi Ex-NO +d date : GREMES® Amount? THE GIVEN SET OE Nuts a wa Olell Dleryil b fd be guilt Gd fon Oh Lenten ig Algonidlun + Poe [2sby 1» Stack Ale Obl long t ” Da athe te ail ob an “alter endhig be filoacig comrmouds hep 3: Une df cad elye (Batemans fo check He Pipny fee ve ys heploy the scosult . os ‘oad, the goes: Cookty : ho “ eatal eamens dle wien AA of cele “Guat gong the é 1D mk RRR RK RR RM ELEH debe © Enbee foi raunber saad font echo puabin QBeeond amber” he ME be thine ruber” ee he t the if ES fusk af & sec): Mer if ie a btlsed |: “then Oulpt [valle vi wJgsh tar%. sh’ brnealot anovg the quae ad ee see Rt ee a fest taal al Aucvdl send . as ; Pils thid tombe 64 61 ks UB: ae Deawelht5 abled wi [i he HFC see gt $Ulecd J j the LU e -O"$ re ws gpeolik suns” echo -e" sthod . . £i 5 ie gpealak ruunber Bi Resld * Thee the alee (Paogram pas eer ernncitll “¢ Gy, Datpt rave AMeifed

You might also like