{"id":14141,"date":"2018-04-15T20:16:05","date_gmt":"2018-04-16T00:16:05","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/?p=14141"},"modified":"2018-04-15T20:26:54","modified_gmt":"2018-04-16T00:26:54","slug":"%e0%a6%8f%e0%a6%b0%e0%a6%bf%e0%a6%a5%e0%a6%ae%e0%a7%87%e0%a6%9f%e0%a6%bf%e0%a6%95-%e0%a6%85%e0%a6%aa%e0%a6%be%e0%a6%b0%e0%a7%87%e0%a6%b6%e0%a6%a8-%e0%a6%a6%e0%a7%81%e0%a6%9f%e0%a6%bf-%e0%a6%ad","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=14141","title":{"rendered":"\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"},"content":{"rendered":"<p>#!\/bin\/sh<\/p>\n<p>#will do addition, subtraction, multiplication, and division of two variables<br \/>\nX=12<br \/>\nY=5<\/p>\n<p>#print the values of the variables<br \/>\necho &#8220;X value is: &#8220;$X<br \/>\necho &#8220;Y value is: &#8220;$Y<\/p>\n<p>#addition<br \/>\necho &#8220;X + Y&#8221; = `expr $X + $Y`<\/p>\n<p>#subtraction<br \/>\necho &#8220;Y &#8211; X&#8221; = `expr $Y &#8211; $X`<\/p>\n<p>#multiplication<br \/>\necho &#8220;X * Y&#8221; = `expr $X \\* $Y`<\/p>\n<p>#division<br \/>\necho &#8220;X \/ Y&#8221; = `expr $X \\\/ $Y&#8221;`<\/p>\n<p>&#8212;<\/p>\n<p>\u09ab\u09b2\u09be\u09ab\u09b2 &#8211; Output<\/p>\n<p>bash-3.2$ .\/arithmetics-operations-of-variables.sh<br \/>\nX value is: 12<br \/>\nY value is: 5<br \/>\nX + Y = 17<br \/>\nY &#8211; X = -7<br \/>\nX * Y = 60<br \/>\nX \/ Y = 2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/sh #will do addition, subtraction, multiplication, and division of two variables X=12 Y=5 #print the values of the variables echo &#8220;X value is: &#8220;$X echo &#8220;Y value is: &#8220;$Y #addition echo &#8220;X + Y&#8221; = `expr $X + $Y` #subtraction echo &#8220;Y &#8211; X&#8221; = `expr $Y &#8211; $X` #multiplication echo &#8220;X * Y&#8221; = &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=14141\">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-14141","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":65689,"url":"http:\/\/bangla.sitestree.com\/?p=65689","url_meta":{"origin":14141,"position":0},"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":65716,"url":"http:\/\/bangla.sitestree.com\/?p=65716","url_meta":{"origin":14141,"position":1},"title":"While Loop Example in Shell Programming. Display a Chart #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 12, 2021","format":false,"excerpt":"Example Output bash-3.2$ .\/while-loop-example.sh Enter your Number 10 10 * 1 = 10 10 * 2 = 20 10 * 3 = 30 10 * 4 = 40 10 * 5 = 50 10 * 6 = 60 10 * 7 = 70 10 * 8 = 80 10 *\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":14141,"position":2},"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":65746,"url":"http:\/\/bangla.sitestree.com\/?p=65746","url_meta":{"origin":14141,"position":3},"title":"Topic 3: Example: Simple expr statement in shell scripting #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 13, 2021","format":false,"excerpt":"bash-3.2$ cat operator5.sh #!\/bin\/ksh num1=10 num2=20 echo $num1 num2=`expr $num1 + 25` echo $num2 num3=`expr $num1 + $num2` echo $num3 num4=`expr $num1 * $num2` echo $num4 num5=`expr $num2 \/ $num1` echo $num5 num6=`expr $num1 % 3` echo $num6 \u00a0 bash-3.2$ .\/operator5.sh 10 35 45 350 3 1 From: http:\/\/sitestree.com\/?p=12232 Categories:Linux\/Unix:\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":14141,"position":4},"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":65744,"url":"http:\/\/bangla.sitestree.com\/?p=65744","url_meta":{"origin":14141,"position":5},"title":"Topic 3: Example: Expr statements in Shell Scripts #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 13, 2021","format":false,"excerpt":"bash-3.2$ cat operator1.sh operator2.sh operator3.sh #!\/bin\/sh num1=5 echo $num1 num2=$num1+10 echo $num2 #!\/bin\/sh num1=5 echo $num1 expr $num1 + 7 expr $num1+7 #space matters for expr echo $num1 #!\/bin\/sh num1=5 expr $num1 * 2 expr \"$num1 * 2\" expr $num1 * 2 From: http:\/\/sitestree.com\/?p=12230 Categories:Linux\/Unix: Shell Programming - 001Tags: Post\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\/14141","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=14141"}],"version-history":[{"count":2,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14141\/revisions"}],"predecessor-version":[{"id":14143,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14141\/revisions\/14143"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14141"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}