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
See this, so that one would do
while read vl; do grep -w "$vl" APL_vs_HS.tab || printf -- "-\n" ; done < 1
grepcommand doesn't exist, or thatgrepdoesn't find the pattern? I presume the latter, but the way you phrased it implies the former.