{"id":67,"date":"2018-11-18T13:32:22","date_gmt":"2018-11-18T13:32:22","guid":{"rendered":"http:\/\/tamer-az.com\/?p=67"},"modified":"2018-11-18T13:32:22","modified_gmt":"2018-11-18T13:32:22","slug":"run-bat-files-in-linux","status":"publish","type":"post","link":"https:\/\/tamer-az.com\/?p=67","title":{"rendered":"Run bat files in Linux"},"content":{"rendered":"\n<p>You have to create a file with the extension .sh put this as the first line<br>\tCode:\t<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/bin\/sh<\/pre>\n\n\n\n<p>\nand then just write the rest like writing a .bat file except with the new syntax<br><br>\nafter that, save and run<br><br>\n\n\tCode:\n\t<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chmod +x (filename).sh<\/pre>\n\n\n\n<p>\nto run the script, just type in<br><br>\n\n\tCode:\n\t<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">.\/(filename).sh<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You have to create a file with the extension .sh put this as the first line Code: #!\/bin\/sh and then just write the rest like writing a .bat file except with the new syntax after that, save and run Code: chmod +x (filename).sh to run the script, just type in Code: .\/(filename).sh<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tamer-az.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67"}],"version-history":[{"count":1,"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":68,"href":"https:\/\/tamer-az.com\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions\/68"}],"wp:attachment":[{"href":"https:\/\/tamer-az.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tamer-az.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tamer-az.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}