I'd like to extract a single column from 5 different files and put them together in an output file. I saw a similar question for 2 input files, and the line of code workd very well, the code is:
awk '{printf s $3; s=F}END{print ""}' dom1of5.txt dom2of5.txt dom3of5.txt dom4of5.txt
awk: run time error: not enough arguments passed to printf("Oil[%]")
FILENAME="dom1of5.txt" FNR=1 NR=1
Oil[
---------- Post updated at 11:27 AM ---------- Previous update was at 11:19 AM ----------
awk '{printf s $3; s=FS}END{print ""}' dom1of5.txt dom2of5.txt dom3of5.txt dom4of5.txt
awk: run time error: not enough arguments passed to printf("Oil[%]")
FILENAME="dom1of5.txt" FNR=1 NR=1
Oil[
---------- Post updated at 11:27 AM ---------- Previous update was at 11:27 AM ----------
I'm not sure if I typed it correctly:
awk '{printf s $3; s=FS}END{print ""}' dom1of5.txt dom2of5.txt dom3of5.txt dom4of5.txt
awk: run time error: not enough arguments passed to printf("Oil[%]")
FILENAME="dom1of5.txt" FNR=1 NR=1
Oil[