title: Pass args for script when going thru pipe
body: <p>I have this example shell script:</p>
  
  <pre><code>echo /$1/
  </code></pre>
  
  <p>So I may call</p>
  
  <pre><code>$ . ./script 5
  # output: /5/
  </code></pre>
  
  <p>I want to pipe the script into sh(ell), but can I pass the arg too ?</p>
  
  <pre><code>cat script | sh 
  # output: //
  </code></pre>