BASH/C3/Using-File-Descriptors/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Paralok baieid , ngi pdiangsngewbha iaphi sha ka “spoken tutorial” halor ka “Using File Descriptors”.
00:08 Ha kane ka jinghikai, ngin ia pule kumno ban:
00:11 Assign ia ka “output file descriptor”
00:14 Assign ia ka “input file descriptor”.
00:17 Khang ia ka “file descriptor (fd)”
00:19 Da ka jingiarap ki katto katne ki nuksa.
00:23 Ban bud ia kane ka jinghikai, phi dei ban don ka jingtip jong ka “Shell Scripting” ha ka “Bash.”
00:29 Lada phim don, na ka bynta ki jinghikai ba iadei, sngewbha leit sha ka website jong ngi kumba la pyni. http://www.spoken-tutorial.org
00:35 Na ka bynta kane ka jinghikai, nga pyndonkam da ka:
00:38 Ubuntu Linux 12.04 Operating System
00:43 GNU BASH version 4.2
00:46 Sngewbha kynmaw, ba ka “GNU Bash” “version 4” lane kaba kham shajrong lah ai jingmut na ka bynta kane ka jinghikai.
00:54 To ngin sdang da ka lamphrang.
00:56 Ngi lah dep pule shaphang ki “file descriptors” ha ka jinghikai kaba hashwa.
01:02 0,1 bad 2 kidei ki standard “file descriptors” na ka bynta ka “stdin,” “stdout” bad “stderr”.
01:15 File descriptors lah pyndonkam na ka bynta ka i/o redirection.
01:20 Ka syntax ban assign ia u file descriptor sha ka output file kadei:
01:25 exec [File descriptor] greater than symbol filename
01:31 To ngin peit ia ka nuksa.
01:33 Nga don ia ka “code file” da ka kyrteng “fdassign dot sh”.
01:43 Ka lain ba nyngkong kadei ka “shebang line.”
01:49 Ka "exec" command ka bujli ia ka shell process ba mynta.
01:56 Kan sa execute ha ka jaka jong ka “shell” ba mynta khlem da shna ia ka “process” ba thymmai”.
02:04 Ngi tip ba ki 0, 1, bad 2 kidei ki standard file descriptors.
02:09 Na ka bynta kino kino ki file thymmai kiba plie, ngi don ia ki additional “file descriptor” naduh u 3 haduh 9.
02:19 Hangne, 3 udei u “file descriptor”.
02:22 Kane kan sa thoh ia ka “output” sha ka “output dot txt” file.
02:30 U “string” "Welcome to BASH learning" u lah phah sha ka file output dot txt.
02:36 Ia kane ka leh da ka file descriptor 3.
02:42 Kane ka ia syriem ia ka jingphah ia ka “string” sha ka file.
02:49 Man ki string ba thymmai kin sa appen sha ka file.
02:52 Kum ka nuksa:
02:54 Ngi ia append ia ka “system date” ba mynta sha ka output dot txt file.
03:00 Ka syntax kadei: date SPACE greater-than symbol ampersand sign 3.
03:13 Hangne, ngin ia khang ia ka “file descriptor”.
03:16 Hadien jong kane ka lain, ka “descriptor” kam lah ban thoh ia kaei kaei sha ka output dot txt file.
03:23 To ngin ia execute ia u code bad peit ia ka output.
03:26 Plie ia ka terminal da kaba pyndonkam da ki CTRL+ALT+T keys.
03:34 Type: chmod space plus x space fdassign dot sh
03:41 Type: dot slash fdassign dot sh
03:46 To ngin ia check mynta ia ka “output” da kaba type cat space output dot txt.
03:56 Ngi iohi ba ka string "Welcome to BASH learning" bad ka “system date” ba mynta lah pyni.
04:05 To ngin ia phai biang sha ka “editor”.
04:11 Mynta ngan type ia ka “echo” ha kaba kut, hadien ba ka “descriptor” ka lah khang.
04:17 Type: echo space hapoh ki double quotes Hi hadien jong ki quotes space greater than symbol ampersand sign 3
04:31 Nion ha “Save”.
04:35 To ngin ia “execute” ia ka “script” sa shisien bad peit kaei ka ban jia.
04:38 Ha ka terminal, shon ar sien ia u up-arrow key, kynmaw ia ka command ba hashwa dot slash fdassign dot sh.
04:50 Nion “Enter.”
04:52 Ngi iohi ia ka jingbakla:
04:55 "Bad file descriptor".
04:58 To ngin ia pynbeit ia kane ka jingbakla.
05:00 Phai biang sha ka “editor”.
05:03 Ngan ot noh ia ka lain ba khatduh jong u code bad buh ia u hapoh jong ka “date command”.
05:11 Nion ha “Save”.
05:13 To ngin ia “execute” ia u “code” sa shisien, ha ka “terminal”.
05:19 Kynmaw ia ka command kaba hashwa dot slash fdassign.sh.
05:24 Nion “Enter.”
05:26 Mynta to ngin ia plie ia ka output dot txt file.
05:29 Type: cat space output dot txt
05:41 Ngi iohi ia ka output.
05:43 Ka string “Hi” la pyni ha kaba kut.
05:49 Mynta ngin ia assign ia u “file descriptor” sha ka “input file”.
05:54 To ngin peit ia ka nuksa.
05:56 Nga don ia ka file kaba kyrteng fdread dot sh.
06:03 To ngin ia peit ia ka.
06:07 Kane kadei ka “ ‘exec’ “ command.
06:13 Hangne ngi read ia ka file output dot txt.
06:19 Ka lain exec 3 lesser than symbol output dot txt kan sa plie ia ka file na ka bynta ban pule.
06:30 'cat' command kan sa pyni ia ka content jong ka file.
06:35 Bad khatduh, ngi khang ia ka “file descriptor.”
06:39 Mynta, to ngin ia “execute” ia kane ka “shell script”.
06:42 Ha ka “terminal”, to ngan weng ia ka “prompt”.
06:47 Type: chmod space plus x space fdread dot sh
06:55 Type dot slash fdread dot sh
07:01 Ngi iohi ia ka output ha ka “terminal”.
07:05 Ka content jong ka output dot txt file la pyni.
07:10 Da kane ngi lah poi sha kaba kut jong kane ka jinghikai.
07:13 Phai biang sha ki “slides”.
07:16 To ngin ia batai kyllum. Ha kane ka jinghikai, ngi la pule kumno ban:
07:19 Assign ia ka output file descriptor
07:22 Assign ia ka input file descriptor
07:26 Khang ia ka file descriptor.
07:28 Kum ka kam na ka bynta jong phi:
07:30 Pyrshang ban append ia ki katto katne ki lain sha ka file test dot txt da kaba pyndonkam ia ki file descriptors;
07:36 Pyni ia ki contents jong ka file da kaba pyndonkam ia kifile descriptors.
07:41 Peit ia ka video kaba don ha ka link ba la ai harum.
07:45 Ka kyllum lang ia ka Spoken-Tutorial project.
07:48 Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien.
07:53 Ka kynhun jong ka Spoken Tutorial Project: Ka pynlong ia ki workshops da kaba pyndonkam ia ki spoken tutorials.
07:58 Ka ai certificates sha kito kiba pass ha ka online test.
08:02 Na ka bynta ki jingtip ba kham bniah, sngewbha thoh sha ka “contact@spoken-tutorial.org”
08:10 Spoken Tutorial Project kadei shi bynta jong ka Talk to a Teacher project.
08:14 La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India.
08:22 Kham bun ki jingtip halor kane ka mission ha ka link ba lah ai harum http://spoken-tutorial.org/NMEICT-Intro
08:28 Ia kane ka script la noh synniang da ka FOSSEE bad ka kynhun jong ka Spoken-Tutorial.
08:33 Ma nga i Meboreen na Shillong, nga pynkut ia kane.
08:37 Khublei shibun.

Contributors and Content Editors

Meboreen Mary