{"id":2274,"date":"2017-12-08T06:15:30","date_gmt":"2017-12-08T06:15:30","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2274"},"modified":"2020-01-09T09:28:44","modified_gmt":"2020-01-09T09:28:44","slug":"write-script-using-case-statement-to-perform-basic-math-operation","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/write-script-using-case-statement-to-perform-basic-math-operation\/","title":{"rendered":"Write Script, using case statement to perform basic math operation"},"content":{"rendered":"<p><strong>scmjobs created the topic: Write Script, using case statement to perform basic math operation<\/strong><\/p>\n<p>Write Script, using case statement to perform basic math operation as<br \/>\nfollows<br \/>\n+ addition<br \/>\n&#8211; subtraction<br \/>\nx multiplication<br \/>\n\/ division<br \/>\nThe name of script must be &#8216;q4&#8217; which works as follows<br \/>\n$ .\/q4 20 \/ 3, Also check for sufficient command line arguments<\/p>\n","protected":false},"excerpt":{"rendered":"<p>scmjobs created the topic: Write Script, using case statement to perform basic math operation Write Script, using case statement to perform basic math operation as follows + addition &#8211; subtraction&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[454],"tags":[278],"class_list":["post-2274","post","type-post","status-publish","format-standard","hentry","category-shell-script","tag-script"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2274"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2274\/revisions"}],"predecessor-version":[{"id":2275,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2274\/revisions\/2275"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}