![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Substitute for echo | hanyou.lin | Linux | 1 | 09-16-2008 07:05 AM |
| rm substitute with blacklist | broli | UNIX for Dummies Questions & Answers | 2 | 12-06-2007 08:13 AM |
| Substitute Variable | mmg2711 | UNIX for Dummies Questions & Answers | 0 | 10-26-2007 07:59 AM |
| Substitute in vi | kingdbag | UNIX for Dummies Questions & Answers | 5 | 01-17-2007 02:42 PM |
| vi + regexp + substitute | Lomic | UNIX for Dummies Questions & Answers | 9 | 12-10-2004 10:50 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Trouble with search and substitute
Hi there,
I have a file with 1800+ lines and all are something like this: drwx--x--x 12960 4096 Oct 6 2006 palfvoet drwx--x--x 67205 4096 May 9 05:21 pallsopp drwx--x--x palmgren 4096 Oct 6 2006 palmgren now, as you can see, the middle one shows a time instead of a year, and every line in the file that has this needs to be marked with a * at the end of the line I tried something like this: /\:/,$s/.$/&*/g but he just changed every line after the first one with a : Anyone knows what I'm doing wrong? PS: I'm using vi to edit this file |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|