in reply to $/ find a line
perl -i.orig -pe 'if ($c) { s/^line(\d+)/name$1/ } $c = /^\$\$\$\$$/; +' input.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: $/ find a line
by Anonymous Monk on Aug 10, 2004 at 11:46 UTC | |
by borisz (Canon) on Aug 10, 2004 at 11:53 UTC |