title: Linux scripting: Search a specific column for a keyword
body: <p>I have a large text file that contains multiple columns of data. I'm trying to write a script that accepts a column number and keyword from the command line and searches for any hits before displaying the entire row of any matches.</p>
  
  <p>I've been trying something along the lines of:</p>
  
  <p><code>grep $fileName | awk '{if ($'$columnNumber' == '$searchTerm') print $0;}'</code></p>
  
  <p>But this doesn't work at all. Am I on the right lines? Thanks for any help! </p>