perl -pi.bak -e 's#[^\d$/]#,#g' file1.txt
Yeah, \D would have been simpler than [^\d$/], but then you'd also get the input record seperator assuming it hadn't been set to a number.
In reply to Re: Search & Replace Revisited
by Kanji
in thread Search & Replace Revisited
by codejnki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |