9

[SOLVED] Need to insert a newline after 3rd line of grep pattern search

view full story
linux-howto

http://www.linuxquestions.org – I have a file e.g Fedora Linux MAC Windows it should grep 3 lines e.g grep -A2 Fedora file The o/p is Fedora Linux MAC And I want to insert a new line after 3rd line of last grep so o/p should be: Fedora Linux MAC NEWLINE Windows How to do it with[sed,awk,grep]?? (HowTos)