in reply to Capture error from one-liner
| V perl -e 'for my $file (@ARGV) { open my $IN, "<", $file or die $!; whi +le (<$IN>) {s/AJZ/AZZ/g if /^AB/; print}}' input > output
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capture error from one-liner
by shmem (Chancellor) on Sep 19, 2014 at 16:54 UTC | |
by choroba (Cardinal) on Sep 19, 2014 at 16:56 UTC | |
|
Re^2: Capture error from one-liner
by LanX (Saint) on Sep 19, 2014 at 17:03 UTC | |
|
Re^2: Capture error from one-liner
by dirtdog (Monk) on Sep 19, 2014 at 16:48 UTC |