{"id":9330,"date":"2014-09-03T05:19:57","date_gmt":"2014-09-02T19:19:57","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=9330"},"modified":"2014-09-03T05:19:57","modified_gmt":"2014-09-02T19:19:57","slug":"linux-korn-shell-interactive-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-korn-shell-interactive-primer-tutorial\/","title":{"rendered":"Linux Korn Shell Interactive Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Linux\/shapes.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Linux Korn Shell Interactive Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Linux\/shapes.jpg\" title=\"Linux Korn Shell Interactive Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Linux Korn Shell Interactive Primer Tutorial<\/p><\/div>\n<p>Linux (or unix) support a number of shell command line environments, the default being <a target=_blank title='Bash shell informaion from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Bash_%28Unix_shell%29'>Bash<\/a> for Mac OS X and its Terminal application.  My favourite shell is called <a target=_blank title='Korn shell informaion from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Korn_%28Unix_shell%29'>Korn<\/a> shell, because I got used to it a lot doing work with it, and I do find Foghorn Leghorn amusing &#8230; even though this is spelt <a target=_blank title='My Corn Hurts' href='https:\/\/www.youtube.com\/watch?v=PtR4cWb4HNg'>Corn<\/a> &#8230; pretty Flaky reasoning &#8230; chortle, chortle &#8230; you cannot be cereal &#8230; chortle, chortle.<\/p>\n<p>When you want interactive input from the user in a desktop session I guess it is tempting to write a C or C++ or Java program (and compile it), but there is nothing wrong with getting the input via a shell script of some sort, if speed is not of the essence.   With this in mind we say something about a shape you nominate with your interactive input, should you follow through and download the Korn shell script you could call <a target=_blank title='shapes.ksh' href='http:\/\/www.rjmprogramming.com.au\/Linux\/shapes.ksh_GETME'>shapes.ksh<\/a> and save it to your Linux disk (into the path somewhere perhaps) and <i>chmod 777 .\/shapes.ksh<\/i> to make the script executable and go <i>.\/shapes.ksh<\/i> to execute (within the directory where you placed it)..<\/p>\n<p>Looked up Google for <a target=_blank title='Shape ideas' href='https:\/\/www.google.com.au\/search?q=%22names+of+shapes%22&#038;client=firefox-a&#038;hs=4nh&#038;rls=org.mozilla:en-US:official&#038;channel=sb&#038;tbm=isch&#038;imgil=U1j3mNQwlbzkTM%253A%253BSYaTL9Np_bb1dM%253Bhttp%25253A%25252F%25252Fwww.mathwithlarry.com%25252Flessons%25252Flesson008.htm&#038;source=iu&#038;fir=U1j3mNQwlbzkTM%253A%252CSYaTL9Np_bb1dM%252C_&#038;usg=__aN2KHQOBH1cCpIrtgx2zspSXh7w%3D&#038;sa=X&#038;ei=3EsFVLf0Kc2VuATl54LACw&#038;ved=0CCMQ9QEwAQ&#038;biw=1073&#038;bih=658#facrc=_&#038;imgdii=_&#038;imgrc=X633ImGRa4OjnM%253A%3BCrVgEZGLHobkqM%3Bhttp%253A%252F%252Fromanobilingual.com%252Flessons%252Fgeometry%252Fshapes.gif%3Bhttp%253A%252F%252Fwww.landscapinggallery.info%252Fshapes-and-names%252Fshapes-and-names.html%3B640%3B600\n'>content ideas<\/a> here &#8230; so, thanks.<\/p>\n<p>As with all Linux command line commands <i>man ksh<\/i> can help you find out more about Korn shell (man refers to it as <i>&#8220;KornShell, a standard\/restricted command and programming language&#8221;<\/i>) or, if you are feeling a bit violent (chortle, chortle), try <i>man bash<\/i> to find out more about the GNU Bourne-Again SHell &#8230; I kid you not &#8230; sounds like a great title for another <a target=_blank title='Matt Damon movie' href='http:\/\/en.wikipedia.org\/wiki\/The_Bourne_Identity_%282002_film%29'>Matt Damon<\/a> movie.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d5435' onclick='var dv=document.getElementById(\"d5435\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Linux\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d5435' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Linux (or unix) support a number of shell command line environments, the default being Bash for Mac OS X and its Terminal application. My favourite shell is called Korn shell, because I got used to it a lot doing work &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-korn-shell-interactive-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29,37],"tags":[132,234,319,617,677,707,725,732,885,997,1105,1138,1319,1339],"class_list":["post-9330","post","type-post","status-publish","format-standard","hentry","category-elearning","category-operating-system","category-tutorials","tag-bash","tag-command-line","tag-desktop","tag-interactive","tag-korn-shell","tag-linux","tag-mac-os-x","tag-mac-terminal","tag-operating-system-2","tag-programming","tag-script","tag-shell","tag-tutorial","tag-unix"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/9330"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=9330"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/9330\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=9330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=9330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=9330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}