Is there a way to have each result of grep followed by newline for example if the result of grep is:
1
2
3I need it to be:
1
2
3 3 1 Answer
grep "pattern" /path/to/file | awk '{print $0,"\n"}' 2 Is there a way to have each result of grep followed by newline for example if the result of grep is:
1
2
3I need it to be:
1
2
3 3 grep "pattern" /path/to/file | awk '{print $0,"\n"}' 2