![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Search for strings & copy to new file | amitrajvarma | Shell Programming and Scripting | 2 | 11-25-2007 11:51 PM |
| Delete strings in a file | ayhanne | Shell Programming and Scripting | 8 | 11-09-2007 09:48 AM |
| Help with extracting strings from a file | cmsdelhi | Shell Programming and Scripting | 7 | 01-12-2007 09:49 AM |
| Please Help. Strings in file 1 need to be searched and removed from file 2 | mjs3221 | Shell Programming and Scripting | 4 | 08-18-2006 04:13 PM |
| How to concatenate two strings or several strings into one string in B-shell? | fontana | Shell Programming and Scripting | 2 | 08-26-2005 12:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
I have a file(old file) with names in it like
Jolly Mirani Han Lee stuart Lloyd I want string to be added to these names . New file should look like 'jolly mirani' 'han lee' 'stuart lloyd' I tried using sed command but doesn't work for string but it do work for paranthesis. Can some one help me with the code for the same. sed 's/[^][^]*/(&)/g' <old file> new file |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|