![]() |
|
|
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 |
| Replacement of sed with perl | dbsurf | Shell Programming and Scripting | 4 | 01-25-2008 06:21 PM |
| String Replacement Script | jbud | Shell Programming and Scripting | 6 | 11-15-2007 06:37 AM |
| Need shell/sed script for grep+string replacement | pranavagarwal | Shell Programming and Scripting | 3 | 11-15-2007 06:35 AM |
| sed problem - replacement string should be same length as matching string. | amangeles | Shell Programming and Scripting | 4 | 01-11-2006 06:11 AM |
| String replacement in multiple files | WABonnett | Shell Programming and Scripting | 2 | 02-17-2004 03:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
String Replacement with Perl
I want to replace a string within a file using perl.
We have a line that gets commented out, and I want to replace that line now matter how it was commented out. for example, I'd want to replace ###ES=PR1A with ES=PR1A or ##LJW(9/16/26)ES=PR1A with ES=PR1A I tried: perl -pi -e 's/ES=PR1A\Z/ES=PR1A/' filename but the comments are not removed. Thank you in advance for any guidance you can give.. Linda |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|