Linux/C3/The-grep-command/Khasi
From Script | Spoken-Tutorial
Revision as of 17:52, 16 April 2018 by Hezekiah2016 (Talk | contribs)
Time | Narration |
00:01 | Pdiang sngewbha sha kane ka spoken tutorial halor ka grep command. |
00:05 | Ha kane ka tutorial, ngin pule iaka grep command. |
00:09 | Ngin leh ia kane daka jingiarap jong ki katto katne ki nuksa. |
00:11 | Ban record ia kane ka tutorial, Nga pyndonkam ka |
00:15 | Ubuntu Linux 12.04 Operating System |
00:20 | bad ka GNU BASH version 4.2.24. |
00:24 | Kynmaw ba kan khambha ban don ka, GNU bash version 4 lane shalor ban practice ia kane ka tutorial. |
00:32 | Katkum ka jingdonkam, phi dei ban tip iaki basics jong ka Linux terminal. |
00:36 | Naka bynta ki tutorial ba iadei bad kane, sngewbha leit sha ka website jong ngi kaba la pyni. |
00:41 | Nyngkong to ngin tip shaphang ki regular expressions. |
00:45 | Ki Regular expressions kidei ki pattern matching techniques |
00:50 | Haba ngi donkam ban tip ba lada ka pattern ka don ne em haka line, paragraph lane ka file. |
00:56 | Kumka nuksa. Lada phi kwah ban wad ia u phone number haka telephone directory |
01:02 | Lane ban lap iaka keyword haka paragraph lane ka line, ngi pyndonkam daka grep command. To ngin iaid mynta sha ka grep. |
01:11 | Ka grep ka wad ia kawei lane bun tylli ki pattern ha palat kawei ka lain, paragraphs lane ka file. |
01:17 | Lada khlem ong iaka file name, ka grep ka wad iaki pattern haka standard input. |
01:23 | Lada ka file name kam don, ka grep ka wad iaki pattern haka standard input. |
01:30 | Ngan pyni nuksa iaka jingpyndonkam jong ka grep dakaba pyndonkam ka demo file ba khot ka grepdemo.txt. |
01:37 | To ngin peit iaka content jong ka file. |
01:40 | Kane ka file kadon 13 tylli ki entries. |
01:44 | Kawei pa kawei ka entry ka don 6 tylli ki jaka pyndap: roll number, name, stream, marks, bad stipend amount. |
01:52 | Iaki jaka pyndap la pyniakhlad da u bar, u ba la khot u delimiter. |
01:56 | To ngin peit kumno ka grep ka treikam. |
02:00 | Lehse ngi kwah ban pyndonkam iaka grep command, ban peit mano naki student ki don haka computers stream. |
02:07 | Naka bynta kane, ngi donkam ban plié ia u terminal. |
02:10 | Te nion lang iaki key Ctrl + Alt and T haka keyboard jong phi. |
02:16 | Mynta ha u terminal type: |
02:18 | grep space (Hapoh ki double quotes) computers hadien ki double quotes space grepdemo .txt |
02:27 | Nion Enter. Kane kan pyni lut ia baroh kito ki entries kiba stream kadei computers. |
02:33 | Mynta ia nujor iaka jingmih bad ka original file. |
02:37 | Wan biang sha ka text editor jong ngi. |
02:40 | Ngi iohi ba iaka entry naka bynta u Zubin khlem shymla list. |
02:45 | Balei kane? Kane ka long namar ka grep ka wad iaka pattern “computers” daki c dak rit. |
02:52 | Katba ia u Zubin, ka stream “Computers” ka long ha u C dak heh. |
02:57 | Ka pattern matching ka long case sensitive. |
03:00 | Ban pynlong iaka case insensitive, ngi donkam ban pyndonkam u jingjied minus i (-i) bad ka grep. |
03:06 | Wanphai pat sha u terminal jong ngi, mynta type:grep space (minus) i space (Hapoh ki double quotes) “computers” hadien ki double quotes space grepdemo.txt |
03:20 | Nion Enter. Kane kan list mynta ia baroh saw tylli ki entry. |
03:25 | Te ngi la iohi, ka grep ka list tang ia kito ki lain jong ki file kiba ia hap bad ka pattern bala ai. |
03:32 | Ngi lah ban leh da khongpong. |
03:34 | Ka long kaba lah ban pynlong iaka grep ban list tang ia kito ki do not match bad ka pattern. |
03:40 | Na bynta kata, ngi don iaka jingjied minus v. |
03:43 | Lehse, ngi kwah ban list tang ia kito ki entry jong ki student kiba khlem pass. |
03:48 | Ngi lah ruh ban buh ia kane ka result ha kawei pat ka file. |
03:52 | Naka bynta kane, type: grep space minus iv space Hapoh ki double quotes pass hadien ki double quotes space grepdemo.txt space greater than sign space notpass.txt |
04:11 | Nion Enter. Ban peit iaki content jong ka file, type: cat space notpass.txt |
04:20 | Nion Enter.Ka jingmih lah pyni. |
04:24 | Mynta ha u prompt type: |
04:26 | grep space minus i space' Hapoh ki double quotes fail hadien ki double quotes space grepdemo.txt |
04:37 | Bad nion Enter. Kane ka long pher. |
04:41 | Kane kan kynthup ia kito ki student kiba lah fail hynrei ka result jong ki pat kam long pura. |
04:46 | Lada ngi kwah ban peit ia u line number haka file ha kaba entry bala list kadon, ngi don ia u jingjied minus n |
04:54 | To ngin pynkhuid ia u prompt. |
04:58 | Mynta type grep space -in space hapoh ki double quote "fail" hadien ki double quotes space grepdemo.txt. |
05:09 | Nion Enter. |
05:11 | Ia u line number la pyni. |
05:15 | Iaki patterns haduh mynta kila long haka single-word. |
05:18 | Ngi don ruh ki multi-word patterns kumjuh. |
05:21 | Hynrei ka pattern baroh kawei kadei ban long hapoh ki quotes. |
05:24 | Te, type: grep space minus i space hapoh ki double quotes ankit space saraf hadien ki double quotes space grepdemo.txt |
05:38 | Nion Enter. |
05:40 | Ngi iohi ba la pyni iaka record jong Ankit Saraf'. |
05:44 | Ngi lah ruh ba wad iaki pattern haki file ba bun tylli. |
05:48 | Naka bynta kane, type: grep space minus i space hapoh ki double quotes fail hadien ki double quotes space grepdemo.txt space notpass.txt |
06:03 | Press Enter. Iaka output la pyni. |
06:07 | Bad ki file ba bun tylli, ka grep kan thoh iaki kyrteng jong ka file hakaba lashem iaka entry. grepdemo.txt bad notpass.txt. |
06:18 | Kine ki long ki record naka file notpass.txt bad kine ki long ki record naka file grepdemo.txt. |
06:26 | Lehse, ngi lah ban kwah ban tip iaki number of matches lane count. |
06:31 | Naka bynta kata, ngi don ia u minus c option. |
06:35 | Te, type: grep space minus c space hapoh ki double quotes Fail bad u F dakheh hadien ki quotes space grepdemo.txt |
06:48 | Nion Enter. |
06:50 | Kane kan ai ngi iaka count jong ka jingdon ki line ba iahap. |
06:55 | kane ka wallam ia ngi sha kaba kut jong kane ka tutorial. |
06:59 | To ngin Batai lyngkot. |
07:01 | Ha kane ka tutorial ngi la pule: |
07:03 | Ban peit iaki content jong ka file nuksa cat filename |
07:07 | Ban list iaki entry jong ka stream nuksa. grep “computers” grepdemo.txt |
07:14 | Ban iaidlait iaki rukom ki dak, nuksa. grep -i “computers” grepdemo.txt |
07:21 | Ki Line ki bym iahap bad ka pattern nuksa. grep -iv “pass” grepdemo.txt |
07:30 | Ban list iaki line numbers bad ki entry nuksa. grep -in “fail” grepdemo.txt |
07:38 | Ban buh iaka result ha kawei pat ka file nuksa. grep -iv “pass” grepdemo.txt > notpass.txt |
07:50 | Bad ban tip iaka count nuksa. grep -c “Fail” grepdemo.txt. |
07:57 | Kum ka assignment, Wad shuh sa katto katne ki commands kum -E, + and ?. |
08:04 | Peit iaka video ba don haka link bala pyni harum. |
08:06 | Ka batai lyngkot iaka Spoken Tutorial project. |
08:10 | Lada phim don u bandwidth uba biang, phi lah ban download bad peit iaka. |
08:14 | Ka Spoken Tutorial Project Team: |
08:16 | ka pynlong ki workshop dakaba pyndonkam ki spoken tutorials |
08:19 | Ka ai certificate sha kito kiba pass haka online test. |
08:23 | Ban tip kham bniah, sngewbha thoh sha contact@spoken-tutorial.org |
08:30 | Ka Spoken Tutorial Project kadei shi bynta jong ka Talk to a Teacher project. |
08:33 | La kyrshan iaka daka National Mission on Education through ICT, MHRD, Sorkar India. |
08:40 | Khambun ka jingtip halor kane ka mission ka don haka link bala pyni: http://spoken-tutorial.org\NMEICT-Intro. |
08:45 | Ia kane ka script la pynkylla sha ka Ktien Khasi da I Hezekiah Lyngdoh na Shillong. Khublei ba phi la iasnoh lang. |