标签: linux shell unix sh
有没有办法让grep的每个结果后跟换行符 例如,如果grep的结果是:
1 2 3
我需要它:
答案 0 :(得分:23)
grep "pattern" /path/to/file | awk '{print $0,"\n"}'