Call it as script original.txt >new.txtwhile (<>) { if (/^(\w{188})(\d{8})(\w{16})/) { next if $2 eq "00000000"; print "${1}20020101$3\n"; } }
In reply to Re: search and replace on a line by line basis
by matija
in thread search and replace on a line by line basis
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |