BASH/C2/More-on-Loops/Khasi
From Script | Spoken-Tutorial
Time | Narration |
00:01 | Ngi pdiangsngebha ia phi sha ka “spoken tutorial” halor ka “Nested for loop” ha ka “BASH”. |
00:07 | Ha kane ka jinghikai, ngin ia pule ia ka “Nested for loop” da ka jingiarap jong ka nuksa. |
00:13 | Ban record ia kane ka jinghikai, nga pyndonkam da ka Ubuntu Linux 12.04 Operating System bad ka GNU BASH version 4.1.10 |
00:24 | Sngewbha kynmaw, ba ka “GNU Bash” version 4 lane kaba kham shajrong la ai jingmut na ka bynta kane ka jinghikai. |
00:31 | Ban pule ia kane ka jinghikai, phi dei ban tip ia ki “loops” ha ka “Bash”. |
00:37 | Na ka bynta ki jinghikai kiba iadei bad kane, sngewbha leit sha ka website kumba la pyni- http://spoken-tutorial.org |
00:43 | To ngin ia sdang da ka lamphrang sha ka “nested loop.” |
00:46 | Ka “loop” hapoh jong ka “loop” la tip kum ka “nested loop.” |
00:51 | To ngin ia peit ia ka syntax. Outer “for loop” ‘expression 1,2,3” |
00:57 | inner for loop expression 1, 2, 3; |
01:01 | statement 1, statement 2 |
01:04 | closing inner for loop, closing outer for loop. |
01:09 | To ngin ia peit ia ka nuska halor ka “nested for loop”. |
01:12 | Nyngkong, to ngin ia peit ia ka “directory structure”. |
01:17 | Hangne kadei ka directory ha ka “Desktop” kaba kyrteng “simple-nested-for”. To ngin ia plie ia ka. |
01:24 | Ngi don ia ki sub-directories "test", "test2", "test3" bad ka Bash script. |
01:31 | Ha man ki sub-directoty, kidon bun tylli ki “text files”. |
01:36 | Mynta ngin ia leit sha ka “code” jong ngi. |
01:39 | Kane ka program ka pyni ia baroh ki files kiba don hapoh jong ka sub-directory. |
01:45 | Sngewbha kynmaw ba kajuh ngi lah ban ioh pdiang da ka single line command ls -1 (hyphen one) -R(hyphen R) test*(test asterisk). |
01:53 | Hynrei ngin ia leh ia kane da kaba pyndonkam da ka “for loop”. |
01:58 | Kynmaw ba ka kyrteng jong ka “Bash script” jong ngi kadei ka nested-(hyphen)for dot sh. |
02:05 | Kane kadei ka “shebang line” jong ngi. |
02:08 | Kane kadei ka outer “for loop”. |
02:10 | Kane ka “for loop” kan sa check ia ki directories kiba sdang da ka kyrteng “test”. |
02:15 | Nyngkong ka “echo” line kan pyni ia ka kyrteng ki sub-directories |
02:21 | Ka “echo” line ba ar kan shna ia u lain ba suda |
02:25 | Kane kadei ka inner “for loop”. Kane kan check ia ki files kiba don hapoh jong ki directories. |
02:32 | “Is” ka pyni ia ka directory content. |
02:36 | -1 (hyphen one) la pyndonkam ban lis kawei kawei ka file man ka lain. |
02:41 | Hangne, ngi lis ia ki files. “done” ka pynkut ia ka inner “fop loop”. |
02:45 | Kane ka “command” ka print ia u lain ba pynthiah hadien ba lah dep man ka kylla jong ka outer “for-loop”. |
02:53 | “done” ka pynkut ia ka outer “for loop”. |
02:57 | To ngi ia “execute” ia ka program. Plie ia ka “terminal” da kaba nion “ctrl+alt+t keys ha kajuh kapor na ka keyboard jong phi. |
03:08 | Mynta, to ngin ia leit sha ka directory ha kaba ka “Bash script” kadon. |
03:13 | Kadon ha ka “Desktop”. |
03:15 | Type: cd Desktop. To ngin leit sha ka folder simple-(Hyphen)nested-(Hyphen)for |
03:22 | Nion “Enter.” |
03:24 | Type: chmod plus +x nested-(Hyphen)for dot sh |
03:32 | Nion “Enter.” |
03:34 | Type: dot slash nested-(Hyphen)for dot sh |
03:39 | Nion Enter. Ka output ka lah pyni. Ka pyni ia ki files ha ka test directory, files ha ka test2 directory bad files ha ka test3 directory. |
03:52 | Da kane ngi lah poi sha kaba kut jong kane ka jinghikai. |
03:56 | To ngin ia batai kyllum. Ha kane ka jinghikai, ngi la pule ia ka “Nested for loop”. |
04:02 | Kum ka kam na ka bynta jong phi: |
04:04 | Type biang: nested (hyphen)-for dot sh bash script da kaba pyndonkam ia ka nested while loop. |
04:11 | Save ia ka program jong phi da ka kyrteng 'nested-(hyphen)while dot sh'. |
04:17 | Peit ia ka video kaba don ha link ba lah ai harum. Ka kyllum lang ia ka Spoken-Tutorail project. |
04:23 | Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien. |
04:28 | Ka kynhun jong ka Spoken Tutorial Project:
Ka pynlong ia ki workshops da ka pyndonkam da ki spoken tutorials. Ka ai certificates sha kito kiba pass ha ka online test. |
04:37 | Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ka contact@spoken-tutorial.org. |
04:45 | “Spoken Tutorial” project kadei shi bynta jong ka “Talk to a Teacher” project. La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India. |
04:57 | Kham bun ki jingtip halor kane ka mission kidon ha ka: http://spoken-tutorial.org/NMEICT-Intro |
05:03 | Ia kane ka script la noh synniang da ka FOSSEE bad ka kynhun jong ka Spoken-tutorial. |
05:08 | Ma nga i Meboreen na Shillong nga pynkut ia kane. Khublei shibun. |