(There are much better solutions available if you don't want to specify a range, but something like this is what I gathered from your post.)perl -pe '($c,$d)=(32,126); s/(.)/(ord($^N)>$c-1 and ord($^N)<$d+1)?$^ +N:""/ge;'
In reply to Re: Removing Non-Ascii chars from text file
by Anonymous Monk
in thread Removing Non-Ascii chars from text file
by MonkPaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |