
{"id":16469,"date":"2016-04-16T14:51:32","date_gmt":"2016-04-16T14:51:32","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=16469"},"modified":"2016-04-16T14:51:32","modified_gmt":"2016-04-16T14:51:32","slug":"sample-session-using-variable-expansion-with-bash-shell","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2016\/04\/16\/sample-session-using-variable-expansion-with-bash-shell\/","title":{"rendered":"sample session using &#8220;variable expansion&#8221; with Bash shell"},"content":{"rendered":"<pre>\n$com=world\n$echo com\ncom\n$echo $com\nworld\n$x=hello\n$echo ${x}{com}\nhello{com}\n$echo ${x}${com}\nhelloworld\n$echo $x$com\nhelloworld\n$echo ${x}world\nhelloworld\n$echo ${x} world\nhello world\n$echo $x world\nhello world\n$echo $xcom\n\n$echo $x com\nhello com\n$echo $x $com\nhello world\n$echo $x$com\nhelloworld\n$echo $xcom\n\n$echo ${x}com\nhellocom\n$\n\n\n$your_id=${USER}-on-${HOSTNAME}\n$echo \"$your_id\"\njeffrin-on-debian\n$your_id=$USER-on-$HOSTNAME\n$echo \"$your_id\"\njeffrin-on-debian\n$echo ${USER}5\njeffrin5\n$echo $USER5\n\n$echo $USER 5\njeffrin 5\n$echo $USER 5\njeffrin 5\n$your_id=hello\n$echo $your_id5\n\n$echo $your_id 5\nhello 5\n$echo ${your_id}5\nhello5\n$\n\nhttp:\/\/www.tldp.org\/LDP\/abs\/html\/parameter-substitution.html\nhttp:\/\/guide.bash.academy\/03.variables.html\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$com=world $echo com com $echo $com world $x=hello $echo ${x}{com} hello{com} $echo ${x}${com} helloworld $echo $x$com helloworld $echo ${x}world helloworld $echo ${x} world hello world $echo $x world hello world $echo $xcom $echo $x com hello com $echo $x $com hello world $echo $x$com helloworld $echo $xcom $echo ${x}com hellocom $ $your_id=${USER}-on-${HOSTNAME} $echo &#8220;$your_id&#8221; jeffrin-on-debian &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2016\/04\/16\/sample-session-using-variable-expansion-with-bash-shell\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;sample session using &#8220;variable expansion&#8221; with Bash shell&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16469"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=16469"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16469\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=16469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=16469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=16469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}