![]() |
|
|
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 |
| Last word substitution | capri_drm | Linux | 4 | 06-10-2008 07:19 AM |
| word substitution in unix | capri_drm | Linux | 6 | 05-14-2008 03:36 PM |
| How to use sed substitution using a $variable for a line containing a word | Sangal-Arun | Shell Programming and Scripting | 4 | 08-07-2007 08:09 PM |
| Can a shell script pull the first word (or nth word) off each line of a text file? | tricky | Shell Programming and Scripting | 5 | 08-17-2006 07:29 AM |
| word substitution in csh | oprestol | Shell Programming and Scripting | 1 | 09-16-2005 12:15 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
whole word substitution in SED
I am trying to substitute something with sed and what I want is to substitute a whole
word and not part of a word. ie sed 's/class/room/g' filename will substitute both class and classes into room and roomes which is not what i want Grep for instance can use the -w option or <> grep -w class and in that case it will not get classes. Don't know about sed but wanted to implement something like that |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|