new line separator for each grep result sh script

linux, sh, shell, unix

Solution

grep "pattern" /path/to/file | awk '{print $0,"\n"}'

Problem

Is there a way to have each result of grep followed by newline for example if the result of grep is: ``` 1 2 3 ``` I need it to be: ``` 1 2 3 ```

Original source

Related problems