in reply to search and replace on a line by line basis
do what you need?perl -lne 'next if /.{188}00000000.{16}/; $d='20020101'; s/(.{188})\d{ +8}(.{16})/$1$d$2/; print' original.txt > new.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: search and replace on a line by line basis
by pizza_milkshake (Monk) on Apr 15, 2004 at 17:39 UTC | |
by gsiems (Deacon) on Apr 15, 2004 at 21:11 UTC |