{"id":14138,"date":"2018-04-15T19:57:58","date_gmt":"2018-04-15T23:57:58","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/?p=14138"},"modified":"2018-04-15T19:59:02","modified_gmt":"2018-04-15T23:59:02","slug":"%e0%a6%ad%e0%a7%87%e0%a6%b0%e0%a6%bf%e0%a6%8f%e0%a6%ac%e0%a6%b2-%e0%a6%8f%e0%a6%b0-%e0%a6%ac%e0%a7%8d%e0%a6%af%e0%a6%ac%e0%a6%b9%e0%a6%be%e0%a6%b0-use-of-variables","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=14138","title":{"rendered":"\u09ad\u09c7\u09b0\u09bf\u098f\u09ac\u09b2 \u098f\u09b0 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 &#8211; use of variables"},"content":{"rendered":"<p>#!\/bin\/sh<\/p>\n<p>#assign value to a variable and print to the screen<br \/>\nNAME=&#8221;Justetc&#8221;<br \/>\necho $NAME<\/p>\n<p>#Ask the user to enter a Name<br \/>\necho ##################################<br \/>\necho &#8220;enter name&#8221;<\/p>\n<p>#read command is used to take input from the user<br \/>\nread X<\/p>\n<p>#print the value two times to the screen<br \/>\necho $X<br \/>\necho $X<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u09ab\u09b2\u09be\u09ab\u09b2 &#8211; Output<\/p>\n<p>bash-3.2$ .\/variable_use.sh<br \/>\nJustetc<\/p>\n<p>enter name<br \/>\nSayed Ahmed<br \/>\nSayed Ahmed<br \/>\nSayed Ahmed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/sh #assign value to a variable and print to the screen NAME=&#8221;Justetc&#8221; echo $NAME #Ask the user to enter a Name echo ################################## echo &#8220;enter name&#8221; #read command is used to take input from the user read X #print the value two times to the screen echo $X echo $X &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \u09ab\u09b2\u09be\u09ab\u09b2 &#8211; Output bash-3.2$ &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=14138\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1888],"tags":[],"class_list":["post-14138","post","type-post","status-publish","format-standard","hentry","category---shell-programming","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":65687,"url":"http:\/\/bangla.sitestree.com\/?p=65687","url_meta":{"origin":14138,"position":0},"title":"Examples of using variables in a Shell Program #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 11, 2021","format":false,"excerpt":"#!\/bin\/sh #assign value to a variable and print to the screen NAME=\"Justetc\" echo $NAME #Ask the user to enter a Name echo ################################## echo \"enter name\" #read command is used to take input from the user read X #print the value two times to the screen echo $X echo $X\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65691,"url":"http:\/\/bangla.sitestree.com\/?p=65691","url_meta":{"origin":14138,"position":1},"title":"Take Two values from the user and do arithmetic operations #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 11, 2021","format":false,"excerpt":"#!\/usr\/bin\/bash clear echo \"Enter First Number\" read x echo \"Enter Second Number\" read y #does not work for \/bin\/sh (( z = $x + $y )) (( a = $x - $y )) (( b = $x * $y )) (( c = $x \/ $y )) #clear echo \"Addition\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65689,"url":"http:\/\/bangla.sitestree.com\/?p=65689","url_meta":{"origin":14138,"position":2},"title":"Arithmetic Operations using two variables #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 11, 2021","format":false,"excerpt":"#!\/bin\/sh #will do addition, subtraction, multiplication, and division of two variables X=12 Y=5 #print the values of the variables echo \"X value is: \"$X echo \"Y value is: \"$Y #addition echo \"X + Y\" = `expr $X + $Y` #subtraction echo \"Y - X\" = `expr $Y - $X` #multiplication\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14144,"url":"http:\/\/bangla.sitestree.com\/?p=14144","url_meta":{"origin":14138,"position":3},"title":"\u0997\u09be\u09a3\u09bf\u09a4\u09bf\u0995 \u0985\u09aa\u09be\u09b0\u09c7\u09b6\u09a8 &#8211; \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0\u0995\u09be\u09b0\u09c0 \u09a5\u09c7\u0995\u09c7 \u09a6\u09c1\u099f\u09bf \u09ae\u09be\u09a8 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7 : Arithmetic operations using two values from the user","author":"Sayed","date":"April 15, 2018","format":false,"excerpt":"#!\/usr\/bin\/bash clear echo \"Enter First Number\" read x echo \"Enter Second Number\" read y #does not work for \/bin\/sh (( z = $x + $y )) (( a = $x - $y )) (( b = $x \\* $y )) (( c = $x \\\/ $y )) #clear echo \"Addition\u2026","rel":"","context":"In &quot;\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming&quot;","block_context":{"text":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming","link":"http:\/\/bangla.sitestree.com\/?cat=1888"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14141,"url":"http:\/\/bangla.sitestree.com\/?p=14141","url_meta":{"origin":14138,"position":4},"title":"\u098f\u09b0\u09bf\u09a5\u09ae\u09c7\u099f\u09bf\u0995 \u0985\u09aa\u09be\u09b0\u09c7\u09b6\u09a8 \u09a6\u09c1\u099f\u09bf \u09ad\u09c7\u09b0\u09bf\u09af\u09bc\u09c7\u09ac\u09b2 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7","author":"Sayed","date":"April 15, 2018","format":false,"excerpt":"#!\/bin\/sh #will do addition, subtraction, multiplication, and division of two variables X=12 Y=5 #print the values of the variables echo \"X value is: \"$X echo \"Y value is: \"$Y #addition echo \"X + Y\" = `expr $X + $Y` #subtraction echo \"Y - X\" = `expr $Y - $X` #multiplication\u2026","rel":"","context":"In &quot;\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming&quot;","block_context":{"text":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming","link":"http:\/\/bangla.sitestree.com\/?cat=1888"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65730,"url":"http:\/\/bangla.sitestree.com\/?p=65730","url_meta":{"origin":14138,"position":5},"title":"Topic 2: Example: Debug a Script #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 12, 2021","format":false,"excerpt":"Example debugging a Script \u00a0 bash-3.2$ sh -x scriptwithcomments.sh + echo SCRIPT BEGINS SCRIPT BEGINS + echo Hello shell! Hello shell! + echo + echo Todays date and time: c Todays date and time: + date Fri Apr 27 09:16:29 EDT 2018 + echo mynum=21 myday=Monday + echo The value\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14138"}],"version-history":[{"count":2,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14138\/revisions"}],"predecessor-version":[{"id":14140,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14138\/revisions\/14140"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}