Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • You super cool, all 3 answers works as expected. It would be very great if you could explain any of the above command. Commented Oct 16, 2015 at 21:02
  • @ChitthaShetty Have comments added Commented Oct 16, 2015 at 21:50
  • Thanks for the comment. Something goes over my head, do you have any good reference for sed and awk to start with. Commented Oct 17, 2015 at 9:10
  • @ChitthaShetty From online resources grymoire.com/Unix/Sed.html and main book is «Advanced Bash-Scripting Guide» Commented Oct 17, 2015 at 9:18