Thursday, 8 August 2013

Pipeline each line of a file to a specific variable in a second command

Pipeline each line of a file to a specific variable in a second command

I want to execute the following instruction:
basex -bword=ENTRY consulta.xq
But for every line of a SampleText file (plain text mainly).
The SampleText contains the following lines:
hello
evening
courageous
...
happy
So more or less what I want to do is to execute a instruction in a one
liner recipe similar to this:
cat SampleText | basex -bword=EACHLINE searchquery.xq
Thanks in advanced.

No comments:

Post a Comment