BASH/C3/Basics-of-functions/Khasi

From Script | Spoken-Tutorial
Revision as of 21:07, 4 June 2017 by Meboreen Mary (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:01 Paralok baieid, ngi pdiangsngewbha iaphi sha ka “spoken tutorial” halor ka “Basics of functions” ha ka “Bash.”
00:08 Ha kane ka jinghikai, ngin ia pule shaphang:
00:11 Ka jingdonkam jong ki “Functions”
00:13 Ban declare ia ka “function”
00:15 Ban call ia ka “function”
00:17 Ka work flow jong ka “function”
00:19 Da ka jingiarap jong ka nuksa.
00:22 Ban bud ia kane ka jinghikai, phi dei ban don ia ka jingtip jong ka “Shell Scripting” ha ka “BASH.”
00:28 Lada phim pat tip, na ka bynta ki jinghikai kiba iadei, sngewbha leit sha ka website kumba la pyni. http://www.spoken-tutorial.org
00:34 Na ka bynta kane ka jinghikai, nga pyndonkam da ka Ubuntu Linux 12.04 Operating System.
00:40 Haduh mynta ngi dang pyndonkam da ka GNU BASH version 4.1.10
00:46 Nangne shakhmat, ngin ia pyndonkam da ka GNU BASH version 4.2
00:52 Sngewbha kynmaw, ba ka GNU Bash version 4 lane kaba kham shajrong la ai jingmut na ka bynta kane ka jinghikai.
00:58 To ngin ia peit kaei ka “function” bad ka jingpyndonkam jong ka.
01:03 Ka “function” kadei ka thup jong ki “commands” lane ka “algorithm”.
01:08 Ka jingthmu jong ka kalong ban leh thik tang ia kawei ka kam.
01:12 La pyndonkam ia ka ban phiah ia ki program kiba eh la kijong kijong ki bynta.
01:18 Kane ka iarap ban pynbha ia baroh ka script ban suk ban pule bad suk ban pyndonkam.
01:24 Kidon ar tylli ki syntax na ka bynta ka “function” declaration.
01:28 Ka syntax ba nyngkong kadei- function space function_name
01:32 Hapoh ki curly brackets,
01:34 Ki “command” ki ban sa shah execute.
01:37 Ka syntax kaba ar kadei-
01:39 function_name open and close round brackets
01:42 Hapoh curly brackets,
01:44 Ki “commands” ki ban sa shah execute.
01:47 Function call-Function lah ban khot na kano kano hapoh jong ka program.
01:53 Type ia ka “function name” ha ka jaka kaba phi kwah ban khot ia ka.
01:58 Ka syntax kadei hi ka “function_name”
02:02 To ngin ia pyrshang ban sngewthuh ia kane da ka jingiarap jong ka nuksa kaba suk.
02:07 Nga lah type lypa ia ka code ha ka file function.sh.
02:12 Kane kadei ka shebang line.
02:14 Function lah declared da ka keyword function bud da ka function name.
02:21 Hangne, ka function name kadei machine.
02:26 Ki contents hapoh ki curly brackets la khot ka “function definition”.
02:32 Nga lah pyni ia bun tylli ki jingtip ba bniah jong ki machine kum-
02:36 ka uname hyphen a ka ai ia ka jingtip jong ka machine.
02:41 w hyphen h ka ai ia ka jingtip mynba u nongpyndonkam u pyndonkam ia ka system.
02:46 uptime ka ai ia ka por naduh ba ka machine ka meh.
02:51 “free” ka ai ia ka memory status.
02:54 df hyphen h ka ai ia ka filesystem status.
02:57 Ka main program ka sdang nangne.
03:01 Ngi pyni ia ka khubor ”Beginning of main program”.
03:06 Hangne, “machine” kadei ka “function call.”
03:09 Nangta ngi display ia ka khubor “End of main program”.
03:13 To ngin ia pyrshang ban sngewthuh ia ka workflow.
03:16 Ynda ka “bash interpreter” ka leit sha ka “function definition”, ka shu scan ia ka “function.”
03:23 Ka “function” la khot tang lada ka kyrteng jong ka ka paw hapoh jong ka script.
03:28 Ynda ka “interpreter” ka pule ia ka “function name”, ka executes ia ka function definition.
03:36 Ka “interpreter” ka shim ia ka “function name” kum ka command.
03:41 Sngewbha kynmaw ba ngi hap ban “define” ia ka “function” ha shwa ban “call” ia ka.
03:47 Mynta leit sha ka “terminal.” Ban pynlong ia kane ka code file “executable”
03:52 type: chmod space plus x space function dot sh
03:59 Nion “Enter.”
04:01 Type: dot slash function dot sh
04:05 Nion “Enter.”
04:07 Ka “output” jong ka jingtip jong ka machine jong ka system jong nga lah iohi ha ka “terminal.”
04:14 Sngewbha kynmaw: ka “output” kan iapher na kawei ka system sha kawei pat.
04:19 Da kane ngi lah poi sha kaba kut jong kane ka jinghikai.
04:22 Phai biang sha ki “slides”.
04:24 To ngin batai kyllum. Ha kane ka jinghikai, ngi lah pule:
04:28 Ka jingdonkam jong ki “functions”
04:30 Function declaration
04:32 Function call Work flow jong ka function
04:35 Ryngkat bad ka nuksa.
04:37 Kum ka kam na ka bynta jong phi-thoh ia ka program bad ar tylli ki funcions.
04:42 Ka function ba nyngkong kadei ban pyni ia ka disk-space usage ha kaba lah ban pule da ki briew (Hint: df hyphen h).
04:51 Ka function kaba ar kadei ban pyni ia ka file system ha kaba lah ban pule da ki briew (Hint: du hyphen h).
05:00 Peit ia ka video kaba don ha ka link harum.
05:03 Ka kyllum lang ia ka Spoken-tutorial project.
05:07 Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka.
05:12 Ka kynhun jong ka Spoken Tutorial Project: ka pynlong ia ki workshops da kaba pyndonkam da ki spoken toturials
05:17 Ka ai certificates sha kito kiba pass ha ka online test.
05:21 Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ka contact@spoken-tutorial.org
05:29 Spoken Tutorial Project kadei shi bynta jong ka Talk to a Teacher project.
05:33 La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India.
05:41 Kham bun ki jingtip halor kane ka mission ki don ha ka link ba la ai harum: http://spoken-tutorial.org/NMEICT-Intro
05:47 Ia kane ka script la noh synniang da ka FOSSEE bad ka kynhun jong ka spoken-tutorial.
05:52 Ma nga i Meboreen na Shillong, nga pynkut ia kane.
05:56 Khublei shibun.

Contributors and Content Editors

Meboreen Mary