{"id":70,"date":"2026-04-30T20:16:37","date_gmt":"2026-04-30T20:16:37","guid":{"rendered":"https:\/\/student.wp.odu.edu\/fsull002\/?p=70"},"modified":"2026-04-30T21:14:50","modified_gmt":"2026-04-30T21:14:50","slug":"lab-8-shell-script","status":"publish","type":"post","link":"https:\/\/student.wp.odu.edu\/fsull002\/2026\/04\/30\/lab-8-shell-script\/","title":{"rendered":"Lab 8 &#8211; Shell Script"},"content":{"rendered":"\n<p>With the scripting lab, we used VI editor to create a simple script that would prompt for a user to enter a number, and the script would check whether the number was greater than 10, then echo a response depending on the number entered.  If the number was less than 11, the script would say that the &#8220;number is not greater than 10&#8221; and vice versa if the number was 10 or lower.<\/p>\n\n\n\n<p>For the second part of the lab, we created a script that would ask for a file or directory to check.  If the file or directory existed, it would let you know and define whether it is a directory or file, if it did not, the script would create that file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the scripting lab, we used VI editor to create a simple script that would prompt for a user to enter a number, and the script would check whether the number was greater than 10, then echo a response depending&#8230; <a class=\"more-link\" href=\"https:\/\/student.wp.odu.edu\/fsull002\/2026\/04\/30\/lab-8-shell-script\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":31960,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":8},"categories":[8],"tags":[6,4,5],"_links":{"self":[{"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/posts\/70"}],"collection":[{"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/users\/31960"}],"replies":[{"embeddable":true,"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":3,"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/posts\/70\/revisions\/93"}],"wp:attachment":[{"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/student.wp.odu.edu\/fsull002\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}