标签: bash shell grep
如果grep:
while read vl ; do grep "^$vl" Table_S4.tab ; done < 1
答案 0 :(得分:9)
while read vl; do grep "^$vl" Table_S4.tab || printf "\n" done < 1
如果grep找不到匹配项,则会运行printf命令并输出一个空行。
grep
printf