![]() |
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 |
| Adding a word in front of a word of each line. | Ramesh Vellanki | Shell Programming and Scripting | 4 | 07-02-2008 09:17 AM |
| find a word in a file, and change a word beneath it ?? | vikas027 | Shell Programming and Scripting | 2 | 02-13-2008 04:23 PM |
| Removing a specific word from a created list | erest8 | UNIX for Dummies Questions & Answers | 5 | 10-14-2007 05:11 AM |
| 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 06:29 AM |
| removing first bit from the word | jazz | High Level Programming | 3 | 11-10-2005 04:52 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
Below command in execute mode Remove last word from all lines
%s/ .[^ ]$// Below command in execute mode Remove last word from line 5 5s/ .[^ ]$// Below command in execute mode Remove last word from line 1 to 10 1,10s/ .[^ ]$// |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|