title: using cat in a bash script is very slow
body: <p>I have very big text files(~50,000) over which i have to do some text processing. Basically run multiple grep commands.
  When i run it manually it returns in an instant , but when i do the same in a bash script - it takes a lot of time. What am i doing wrong in below bash script. I pass the names of files as command line arguments to script</p>
  
  <p>Example Input data : </p>
  
  <pre><code>BUSINESS^GFR^GNevil
  PERSONAL^GUK^GSheila
  </code></pre>
  
  <p>Output that should come in a file - BUSINESS^GFR^GNevil</p>
  
  <p>It starts printing out the whole file on the terminal after quite some while. How do i suppress the same?</p>
  
  <pre><code>#!/bin/bash
  cat $2 | grep BUSINESS 
  </code></pre>