title: Bash Style to Receive input From Pipe
body: <p>I intend to execute this way:</p>
  
  <pre><code>./some_code | ./my_bash.sh
  </code></pre>
  
  <p>What is the syntax in <code>./my_bash.sh</code> so that it can take
  input from other as pipe?</p>
  
  <p>I tried this but wont work.</p>
  
  <pre><code>#!/bin/bash
  
  # this is ./my_bash.sh
  cut -f1 $@ | grep 'foo' | wc -l 
  # $@ failed 
  </code></pre>