title: Data processing AWK
body: <p>I have created a shell script which filters certain data based on the input file that I write in the console. But now I have approximately like 30 files to be filtered and I was wondering if I could write all these files (PATH) that needed to be filtered in an .txt file and invoke it in the main awk file to filter each one of them without typing one by one in the console.</p>
  
  <p>Regards. </p>
  
  <p>awk -f "filter.awk" data.txt</p>
  
  <p>data.txt should have file names:
  prueba1.tr
  prueba2.tr
       .
       .
  prueba30.tr</p>
  
  <p>The filter in awk should read each one of the files inside data.txt. If there is a match then it proceeds to open the file a process the data inside. At the moment to do this I am just using if(ARGV[1]=="name of the file.tr") {proceed with the filtering process} But I have approximately 30 files and I would like to automatize this a bit.</p>
  
  <p>Thanks for the suggestions</p>