in reply to Find/Chng every <any>
I hope I understand correctly what you are trying to do... does this seem right?
# note the ? perl -ple 's/<.*?>/<blah>/g' data.txt
Where data.txt contains:
Hello. I'm <cold>. Very <cold>. I like to be <hot>. This is <today>. <today> I don't know what happened <yesterday>.
...and the result:
perl -ple 's/<.*?>/<blah>/g' data.txt Hello. I'm <blah>. Very <blah>. I like to be <blah>. This is <blah>. <blah> I don't know what happened <blah>.
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Find/Chng every <any>
by Saved (Beadle) on Sep 03, 2010 at 19:54 UTC |