![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| replacing a pattern in a file | ROOZ | Shell Programming and Scripting | 6 | 06-11-2008 12:04 PM |
| Perl onliner to search the last line with an occurence of a pattern | ammu | Shell Programming and Scripting | 4 | 01-31-2008 01:09 AM |
| Replacing more than 1 pattern in a line | Manan | Shell Programming and Scripting | 6 | 12-28-2006 01:58 AM |
| Replacing pattern in variable | videsh77 | Shell Programming and Scripting | 1 | 05-26-2005 02:11 PM |
| Pattern occurence in a file | videsh77 | UNIX for Dummies Questions & Answers | 5 | 12-10-2004 07:41 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sed and replacing one occurence of pattern
I would like to use sed to replace one occurence of a pattern in a file. When I use the s/// command it replaces all occurences of the pattern in the file. Should I be using something other than sed?
Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|