I want to run an awk command from Wrapper stage. Something like
Code: Select all
awk -v x="~" -f #AwkScript# #InputFile# > #OutputFileName#
However I am getting syntax error when I run the Job, calling this wrapper stage.
I have verified whether the value of the variables (#AwkScript#, #InputFile#, #OutputFileName#[/) are getting properly passed.Wrapper printed bad property list: Expected "," or "}", got: "~", line 5, stdout text: {
wrapped,
kind = parallel,
usage = "testawk.op AwkScript InputFile OutputFileName"
command = "awk -v x="~" -f #AwkScript# #InputFile# > #OutputFileName# test.awk /home/user1/test.txt /home/user2/test_o.txt
status = {good = 0}
}
Looking at the error I tried to remove variables [ #AwkScript#, #InputFile# ,#OutputFileName# ] from command tab, so that it takes values so that proper command gets executed i.e.
Code: Select all
awk -v x="~" -f test.awk /home/user1/test.txt > /home/user2/test_o.txt
but this time I get an error
What is the mistake that I am doing while sending arguments to Wrapper Stage?Expected IO redirection, pipe, semicolon, or end, got : "["