dragos2
April 30th, 2010, 10:18 AM
Hi friends, I need some help with this little script: it says argument list too long probably
because the awk outputs everything on one line.
diff $(awk '{print $8}' f1.txt) $(awk '{print $8}' f2.txt)
Neither this works:
a=$(awk '{print $8}' f1.txt)
b=$(awk '{print $8}' f2.txt)
diff "$a" "$b"
Any idea of how to fix this besides outputting those awks to separate files and diff from there ?
because the awk outputs everything on one line.
diff $(awk '{print $8}' f1.txt) $(awk '{print $8}' f2.txt)
Neither this works:
a=$(awk '{print $8}' f1.txt)
b=$(awk '{print $8}' f2.txt)
diff "$a" "$b"
Any idea of how to fix this besides outputting those awks to separate files and diff from there ?