Linux/C3/More-on-sed-command/Khasi
From Script | Spoken-Tutorial
Revision as of 20:18, 13 April 2018 by Hezekiah2016 (Talk | contribs)
Time | Narration |
00:01 | Pdiang sngewbha sha kane ka spoken tutorial halor More on sed. |
00:06 | Ha kane ka tutorial, ngin pule shuh shuh shaphang ki sed commands lyngba ki katto katne ki nuksa. |
00:13 | Ban record ia kane ka tutorial, Nga pyndonkam ka |
00:15 | Ubuntu Linux version 12.04 Operating System bad |
00:20 | GNU BASH version 4.2.24 |
00:24 | Sngewbha Kynmaw ba kan khambha ban don ka, GNU bash version 4 lane shalor ban practice ia kane ka tutorial. |
00:32 | Katkum ka jingdonkam, |
00:34 | phi dei ban tip iaki basics jong ka Linux terminal. |
00:37 | Phi donkam ruh ban tip iaki sed tool. |
00:40 | Naka bynta ki tutorial ba iadei bad kane, sngewbha leit sha ka website jong ngi kum ba la pyni: http://spoken-tutorial.org |
00:46 | Ki jingpyndonkam babun jong ka sed ka dei ka substitution. |
00:49 | Buh pli iaki pattern haka input da kiei kiei pat. |
00:55 | To ngin peit shwa iaka original file seddemo.txt. |
01:01 | Peit thuh ba ka kyntien "Kumar" ka wan arsien haka lain kaba saw bad shisien haka lain kaba hynriew. |
01:10 | Lada phi kwah ban bujli ia baroh ki jingmih jong ka ktien "Kumar" da u "Roy", |
01:16 | type ha u terminal: |
01:18 | sed space hapoh ki single quote s front slash / opening square bracket small k capital K closing square bracket umar slash Roy slash hadien ki single quotes space seddemo.txt |
01:40 | Nion Enter. |
01:43 | Peit thuh ia ka lain kaba saw. |
01:46 | Tang ka jingmih jong ka "Kumar" kaba nyngkong la pynkyla sha u "Roy", ym kaba ar. |
01:52 | Ka lain kaba hynriew ka don tang kawei ka kyntien "Kumar" kaba mih haka bad mynta la bujli ia kane. |
01:57 | Te, ngi iohi ba la pynkylla tang iaka entry kaba nyngkong jong ki lain. |
02:03 | Kane ka long namar, dakaba long hi, lah buh bujli ia ka entry kaba iahap nyngkong jong kano kano ka lain. |
02:11 | Ban buh pli ia baroh ki entry kiba iahap kiba ngi donkam ban pyndonkam ia ka flag g option. |
02:17 | To ngan pynkhuid ia u prompt. |
02:20 | Type: sed space (hapoh ki single quotes) 's front-slash opening square bracket small k capital K closing square bracket umar slash Roy slash g' hadien ki single quote space seddemo.txt. Nion Enter. |
02:43 | Mynta, baroh ar ki entry jong ka lain kaba saw lah bujli. |
02:48 | Ngi lah ban bujli ruh shibun tylli shisien leh . |
02:53 | Lehse, ngi kwah ban bujli iaka kyntien "electronics" daka kyntien "electrical" |
02:58 | bad "civil" daka "metallurgy" haka file seddemo.txt. |
03:04 | To ngan pynkhuid ia u prompt |
03:07 | Type: sed space hyphen e space hapoh ki single quotes ‘s front slash electronics slash electrical slash g’ after the single quote space hyphen e space hapoh ki single quotes ‘s front-slash civil slash metallurgy slash g’ hadien ki single quotes space seddemo.txt |
03:37 | Nion Enter. |
03:39 | Phi lah ban iohi ba iaki kyntien la bujli mynta. |
03:43 | Mynta ngi kwah ban pynkylla iaka stream jong u 'Anirban' na "computers" sha "mathematics." |
03:49 | Ha kum kata ka khep ngin donkam ban type: |
03:54 | sed space hapoh ki single quotes 'front-slash Anirban slash s slash computers slash mathematics slash g' hadien ki single quotes space seddemo.txt |
04:11 | Nion Enter. |
04:14 | Ngi iohi ba la pynkylla iaka stream. |
04:17 | To ngin sngewthuh ia kane. |
04:21 | Nyngkong ngi thoh, sed, nangta haki single quotes ngi thoh iaka pattern kaba yn pyniahap. |
04:28 | Kane kadei "Anirban". |
04:30 | Mynta hadien u slash kawan ka jingpyntreikam. |
04:34 | U udei is 's' uba ieng naka bynta ban buh pli kumba ngi lah iohi. |
04:41 | Nangta ngi batai iaka pattern ka ban bujli kaba long "computers". |
04:47 | Nangta ka kyntien kaba thymmai kaba yn buh pli ka long "mathematics". |
04:53 | Ngi lah ruh ban pyndonkam ka sed ban thep lane weng iaki lain haka file. |
05:00 | Lehse, ngi kwah ban jied kito ki lain kiba ym don iaka stream kum "electronics." |
05:06 | Naka bynta kata, ngi don ia u d flag. |
05:10 | Type: sed space hapoh ki single quotes front-slash electronics slash d hadien ki single quotes space seddemo.txt space greater than sign space nonelectronics.txt |
05:31 | Nion Enter. |
05:33 | Ban peit iaki content, type: cat space nonelectronics.txt. |
05:43 | Lehse, ha kaba sdang jong ka file ngi kwah ban thep iaka lain Student Information. |
05:49 | Naka bynta kata ngi don u i action. |
05:54 | Ngi donkam ban type: sed space haki single quotes '1i space Student Information' after the quote space seddemo.txt |
06:10 | Bad nion Enter. |
06:13 | Phi lah ban iohi iaka output. |
06:15 | Haka jingshisha, ngi lah ban thep bun tylli ki file kumne. |
06:20 | Say, we want to add the two lines. We would do it in a similar way. |
06:26 | Along with Student Information we also want to add academics in the next year. |
06:33 | So in that case we would write sed space in single quotes 1i space Student Information slash n 2013 after the quotes seddemo.txt |
06:55 | Press Enter. |
06:57 | Notice slash n between the string ‘Information’ and ‘2013’. |
07:05 | slash n prints 2013 in the next line after ‘Student Information’. |
07:12 | This brings us to the end of this tutorial. |
07:14 | Let us summarize, |
07:17 | In this tutorial we learnt: |
07:19 | Substitution Replacement |
07:21 | And Insertion. |
07:24 | As an assignment, use the same text file seddemo.txt |
07:30 | and try to replace or substitute name "Ankit" with "Ashish". |
07:35 | Peit iaka video ba don haka link bala pyni harum. |
07:39 | Ka batai lyngkot iaka Spoken Tutorial project. |
07:42 | Lada phim don u bandwidth uba biang, phi lah ban download bad peit iaka. |
07:47 | Ka Spoken Tutorial Project Team: Ka pynlong ki workshop dakaba pyndonkam ki spoken tutorial. |
07:53 | Ka ai certificate sha kito kiba pass haka online test. |
07:57 | Ban tip kham bniah, sngewbha thoh sha contact@spoken-tutorial.org |
08:04 | Ka Spoken Tutorial Project kadei shi bynta jong ka Talk to a Teacher project. |
08:09 | La kyrshan iaka daka National Mission on Education through ICT, MHRD, Sorkar India. |
08:16 | Khambun ka jingtip halor kane ka mission ka don haka link bala pyni harum: http://spoken-tutorial.org\NMEICT-Intro. |
08:22 | Ia kane ka script la pynkylla sha ka Ktien Khasi da I Hezekiah Lyngdoh na Shillong. |
08:28 | Khublei ba phi la iasnoh lang. |