
{"id":18059,"date":"2019-03-24T19:11:00","date_gmt":"2019-03-24T19:11:00","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=18059"},"modified":"2019-03-24T19:11:00","modified_gmt":"2019-03-24T19:11:00","slug":"fundamental-related-to-bash-builtin-command-named-shift","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2019\/03\/24\/fundamental-related-to-bash-builtin-command-named-shift\/","title":{"rendered":"Fundamentals  related to bash builtin command named &#8220;shift&#8221;"},"content":{"rendered":"<p><u>ABOUT shift<\/u><\/p>\n<pre>\nshift [n]\n\nThe  positional  parameters  from  n+1  ...  are renamed to $1 ....  Parameters represented by the\nnumbers $# down to $#-n+1 are unset.  n must be a non-negative number less than or equal to $#.  If n is\n0, no parameters  are  changed. If  n  is not given, it is assumed to be 1.  If n is greater than $#, the\npositional parameters are not changed.  The return status is greater than zero if n is greater than $# or\nless than zero; otherwise 0.\n<\/pre>\n<p>[bash]<br \/>\n$cat posiwork<br \/>\nshift<br \/>\necho $1<br \/>\n$.\/posiwork hello world<br \/>\nworld<br \/>\n$.\/posiwork hello<\/p>\n<p>$.\/posiwork hello world people<br \/>\nworld<br \/>\n$emacs posiwork<br \/>\n$cat posiwork<br \/>\nshift 2<br \/>\necho $1<br \/>\n$.\/posiwork hello world people<br \/>\npeople<br \/>\n$<\/p>\n<p>[\/bash]<br \/>\nLINKS<br \/>\n<a href=\"https:\/\/askubuntu.com\/questions\/939620\/what-does-mean-in-bash\">https:\/\/askubuntu.com\/questions\/939620\/what-does-mean-in-bash<\/a><br \/>\n<a href=\"https:\/\/www.computerhope.com\/unix\/bash\/shift.htm\">https:\/\/www.computerhope.com\/unix\/bash\/shift.htm<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT shift shift [n] The positional parameters from n+1 &#8230; are renamed to $1 &#8230;. Parameters represented by the numbers $# down to $#-n+1 are unset. n must be a non-negative number less than or equal to $#. If n is 0, no parameters are changed. If n is not given, it is assumed to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2019\/03\/24\/fundamental-related-to-bash-builtin-command-named-shift\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fundamentals  related to bash builtin command named &#8220;shift&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18273,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,8,83],"tags":[457,508,1441],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18059"}],"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=18059"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18059\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}