in reply to Delete Lines Across Multiple Files
This may work (UNTESTED):
my @files = ( $rrconfig::locodata, $rrconfig::availlocodata, # add other file names here ); { local @ARGV = @files; local $^I = '.back'; # change '.back' to '' if your system supports it while ( <> ) { next if /^[^:]*:$delroad:$delnumber:/; print; } }
|
|---|