<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SHIFT in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323506#M877458</link>
    <description>NAME=$1&lt;BR /&gt;shift&lt;BR /&gt;&lt;BR /&gt;Guru,&lt;BR /&gt;  Any idea what this shift is doing.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
    <pubDate>Mon, 05 Jul 2004 22:12:23 GMT</pubDate>
    <dc:creator>malay boy</dc:creator>
    <dc:date>2004-07-05T22:12:23Z</dc:date>
    <item>
      <title>SHIFT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323506#M877458</link>
      <description>NAME=$1&lt;BR /&gt;shift&lt;BR /&gt;&lt;BR /&gt;Guru,&lt;BR /&gt;  Any idea what this shift is doing.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Mon, 05 Jul 2004 22:12:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323506#M877458</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2004-07-05T22:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: SHIFT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323507#M877459</link>
      <description>May we assume this is in some shell environment, not perl or awk or some such?&lt;BR /&gt;&lt;BR /&gt;Try 'man ksh' and search for shift '/shift':&lt;BR /&gt;Here is what I get:&lt;BR /&gt;     % shift [n]   The positional parameters from $n+1 ...  are renamed&lt;BR /&gt;                     $1 ...; default n is 1.  The parameter n can be any&lt;BR /&gt;                     arithmetic expression that evaluates to a non-negative&lt;BR /&gt;                     number less than or equal to $#.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So what was $2 now becomes $1&lt;BR /&gt;Seems usefull in a parameter processing loop.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jul 2004 22:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323507#M877459</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-07-05T22:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: SHIFT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323508#M877460</link>
      <description>If this "Shift" is indeed about the shell shift, following shell script tutorial might help.. (Anyways, would be better than me explaining it..:-)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://unix.about.com/library/course/blshscript-l5b.htm" target="_blank"&gt;http://unix.about.com/library/course/blshscript-l5b.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;Abdul.</description>
      <pubDate>Mon, 05 Jul 2004 22:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323508#M877460</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-07-05T22:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: SHIFT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323509#M877461</link>
      <description>shift &lt;BR /&gt;&lt;BR /&gt;moves the values stored in command line arguments to left one position&lt;BR /&gt;&lt;BR /&gt;For ex,&lt;BR /&gt;&lt;BR /&gt;assume &lt;BR /&gt;&lt;BR /&gt;$1=mala $2 boy&lt;BR /&gt;alter executing the shift statement&lt;BR /&gt;&lt;BR /&gt;$1=boy $2=</description>
      <pubDate>Mon, 05 Jul 2004 22:28:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323509#M877461</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-07-05T22:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: SHIFT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323510#M877462</link>
      <description>Hi mB,&lt;BR /&gt;&lt;BR /&gt;The shell man pages hae the answer, although TG's answer is a good example.&lt;BR /&gt;&lt;BR /&gt;% shift [n]&lt;BR /&gt;Rename the positional parameters from n+1 ... to 1 ....  The default value of n is 1.  n can be any arithmetic expression that evaluates to a nonnegative number less than or equal to $#.&lt;BR /&gt;&lt;BR /&gt;source: sh-posix</description>
      <pubDate>Mon, 05 Jul 2004 22:41:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323510#M877462</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-07-05T22:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: SHIFT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323511#M877463</link>
      <description>Just for grins try&lt;BR /&gt;&lt;BR /&gt;create shift_it containing&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;echo $1&lt;BR /&gt;shift&lt;BR /&gt;echo $1&lt;BR /&gt;&lt;BR /&gt;chmod 755 shift_it&lt;BR /&gt;&lt;BR /&gt;shift_it hello world&lt;BR /&gt;&lt;BR /&gt;verify the output &lt;BR /&gt;&lt;BR /&gt;hello&lt;BR /&gt;world&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jul 2004 08:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shift/m-p/3323511#M877463</guid>
      <dc:creator>R. Allan Hicks</dc:creator>
      <dc:date>2004-07-07T08:12:48Z</dc:date>
    </item>
  </channel>
</rss>

