I'm extracting rows from a set of text files with awk. The files look like this:
1000 1 75
1000 2 76
1001 1 76
1001 2 80
I'm searching several directories of these with this command:
awk -F"\t" '$3 == "76" { print $1"\t"$2}' ../benchmark/*/labels.txt
awk is giving me the correct output:
1000 2
1001 1
Now for each found row I must execute a script passing these two numbers as parameters, like this:
./build.oct 1000 2
What's the correct way to do that? I don't really care about script console output (it produces files).
print $1,$2
since xargs will split on space as well as on tab characters. – Stéphane Chazelas Jun 18 '14 at 08:57awk
command. – TimP Jun 18 '14 at 21:23