![]() |
|
|
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 |
| Need to substitue space with \n | krishmaths | Shell Programming and Scripting | 6 | 03-27-2008 06:39 AM |
| replace first instance(not first instance in line) | IronHorse7 | Shell Programming and Scripting | 3 | 02-07-2008 01:29 PM |
| Need help for VNS substitue solution..... | mehtasa | UNIX for Advanced & Expert Users | 0 | 01-18-2006 05:52 PM |
| first instance to end of log file | bubba112557 | Shell Programming and Scripting | 2 | 07-16-2004 05:14 AM |
| finding first instance | peter.herlihy | UNIX for Dummies Questions & Answers | 20 | 08-14-2002 04:52 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
sed command - substitue first instance
hi
i have one file where i want to substitute only first instance of swap with swap1 i want to replcae only first instance of swap in my script i know we can do this with awk. but i need to do this with sed only i tried follwoing code sed 's/swap/swap1' filename but here all swap will get replaced with swap1 i want to replace only one and first instance of swap plz guide me Thank You Best Regards, Swapneel |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|