1

Give inputs externally to awk script

view story
linux-howto

http://www.unix.com – Hello to all, Please some awk expert could help me. If I want to run an awk script as "command" give it inputs externally I do: Script.sh Code: Input="$1" # "$1" is the input that will be given to the script Output=${Input%.*}.csv awk '{$1=$1}1' $Input | awk '{...}' > $Output and I run the script like this: Code: . Script.sh inputfile Then, the output is inputfile.csv. That works correctly, but now I have another awk script that uses 2 inputs as follow awk '{...}' Inputfile1 Inputfile2 What is needed in order that the script accepts the 2 input (HowTos)