in reply to Find Replace
So you could do this in a one-liner like perl -pi -e '$i--;$i=2 if /Cessna\d+\s*$/;s/Down(?=\s*$)/Up/g if !$i' *.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Find Replace
by SimTech (Initiate) on Dec 15, 2011 at 18:30 UTC | |
by SimTech (Initiate) on Dec 16, 2011 at 03:43 UTC | |
by graff (Chancellor) on Dec 16, 2011 at 04:08 UTC | |
by kennethk (Abbot) on Dec 16, 2011 at 16:12 UTC | |
|
Re^2: Find Replace
by SimTech (Initiate) on Dec 16, 2011 at 06:23 UTC |