Sed - command
Hello all,
I'm glad to be part of this community. I'm totally new to Linux, starting with Linux+ and lets see, but I'm not new in IT, infact over 8 years of Network engineering experience. if anyone could be so kind and explain the following command, i know what it does, but i don't get 's/ and /g part. sed 's/bob/Bobs/g' letter > anotherletter thanks |
Quote:
the "s" tells Sed to execute the substitute command bob is the original string Bobs is the replacement string the "g" is global flag which it will replace all and any bob to Bobs Looks like the change is happening to a file called letter. However the changed output is getting sent to a new file called anotherletter. |
This sed tutorial is considered by many the best sed resource out there:
http://www.grymoire.com/Unix/Sed.html |
Ya, I was just going to followup with a URL for learning SED. I'm sure there are more out there.
http://www.theunixschool.com/2012/06...e-line-or.html |
Thank you guys, really helped.
|
Please mark as SOLVED once you have your solution :)
|
All times are GMT -5. The time now is 08:15 AM. |