Thread: looping in awk
View Single Post
Old Jun 20th, 2005, 9:12 AM   #4
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
This looks for the presence of column starting at 10 ending at 14 and exists anywhere
in file2.
awk ' {print substr($3,5,4)}' file1 > t.sed
grep -f t.sed file2  > final_output
jim mcnamara is offline   Reply With Quote