or just perl -pe 's/([^^#])/$1$1/g if ($. > 4)' file > newfilewhile (<>) { s/([^^#])/$1$1/g if ($. > 4); print; }
In reply to Re: modifying a string in place
by Roy Johnson
in thread modifying a string in place
by davidj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |