I would like this command to print a dash if grep not found (in addition to the new line already coded):
while read vl ; do grep -w "$vl" APL_vs_HS.tab || printf "\n" ; done < 1
Thanks! Bernardo
I would like this command to print a dash if grep not found (in addition to the new line already coded):
while read vl ; do grep -w "$vl" APL_vs_HS.tab || printf "\n" ; done < 1
Thanks! Bernardo
Why do you need to use printf? Simply use echo, then you won't need to worry about printing a newline because echo automatically outputs one.
while read vl ; do grep -w "$vl" APL_vs_HS.tab || echo "-" ; done < 1
