perl -lne 's/(?<=.{188})(\d{8})(?=.{16})/$1 eq "00000000"?next:"200201 +01"/e && print' original.txt > new.txt
In reply to Re: search and replace on a line by line basis
by ishnid
in thread search and replace on a line by line basis
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |