title: shell get opt is catputre $1 as argument
body: <pre><code>FILE_LIST=$1
  MOVE=0
  while getopts "m" OPT; do
   case $OPT in
            m) MOVE=1 ;;
            M) MOVE=1 ;;
            *) echo "Invalid parameter." &gt;&amp;2; exit 1 ;;
   esac
  done
  
  echo $MOVE
  
  echo $FILE_LIST
  </code></pre>
  
  <p>I will pass optional argument ( -m/-M) and file list . </p>
  
  <pre><code>test.sh -m a.txt 
  </code></pre>
  
  <p>its display <code>1 -m ,</code> but i am looking for <code>1 a.txt</code></p>
  
  <pre><code>Supost if test.sh a.xt 
  </code></pre>
  
  <p>it should be diplsay <code>0  and a.txt</code></p>