Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法让 grep 的每个结果后跟换行符,例如,如果 grep 的结果是:
1 2 3
我需要它是:
grep "pattern" /path/to/file | awk '{print $0,"\n"}'