title: Shell shift procedure - What is this?
body: <p>In shell we have the command shift, but i saw on some example its giving shift 3</p>
  
  <p>Why there is a number after shift ? and what its about ? what it does ?</p>
  
  <p>Example: </p>
  
  <pre><code>echo “arg1= $1  arg2=$2 arg3=$3”
  shift
  echo “arg1= $1  arg2=$2 arg3=$3”
  shift   
  echo “arg1= $1  arg2=$2 arg3=$3”
  shift  
  echo “arg1= $1  arg2=$2 arg3=$3”
  shift
  </code></pre>
  
  <p>The output will be:</p>
  
  <pre><code>arg1= 1 arg2=2  arg3=3 
  arg1= 2 arg2=3  arg3= 
  arg1= 3 arg2=   arg3=
  arg1=   arg2=   arg3=
  </code></pre>
  
  <p>But when i add that, it doesn't display it correctly.</p>