![]() |
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 |
| Replacing lines in text files | Jonny2Vests | Shell Programming and Scripting | 7 | 01-28-2008 08:29 PM |
| help required for replacing text in vi | Chandu2u | Shell Programming and Scripting | 6 | 01-26-2008 11:12 AM |
| replacing a nul field with text | DarkHound | Shell Programming and Scripting | 3 | 09-04-2007 02:34 PM |
| Replacing text | chrchcol | Shell Programming and Scripting | 3 | 07-25-2006 12:30 PM |
| replacing text in an ascii doc | cubs0729 | Shell Programming and Scripting | 6 | 09-29-2005 03:05 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
If you want to change the file names from *_rrr to *_yyy use the below one...
find . -name "*_rrr" | xargs -I{} basename {} _rrr | xargs -I{} mv {}_rrr {}_yyy if you want to replace the text inside the file, then perl -i -pe 's/_rrr/_yyy/' * |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|