title: AWK/bash how to include a filename in AWK
body: <p>I have the following awk script:</p>
  
  <pre><code>#! /bin/awk -f
  
  BEGIN { FS = ":" }
  
  { print $1 " "  $2 " "  $3 " " $4 " "  }
  </code></pre>
  
  <p>I want to code a bash script with "#! /bin/bash", but I need to include a file with it; as the program displays the files.</p>
  
  <pre><code>#! /bin/bash
  
  awk -f, '
  FILENAME= $1
  BEGIN { FS = ":" }
  
  { print $1 " "  $2 " "  $3 " " $4 " "  }
  
  '
  </code></pre>
  
  <p>In above code, I tried to include the file but it doesnt work ?</p>