I want to execute the following instruction:basex -bword=ENTRY consulta.xqBut for every line of a SampleText file (plain text mainly).The SampleText contains the following lines:helloeveningcourageous...happySo 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 
Pipeline each line of a file to a specific variable in a second command
shell script;text processing;pipe
You can use while loop:while IFS= read -r line; do  basex -bword=$line searchquery.xqdone <SampleText