[sf-perl] Perl one liner to remove all control characters from an input file

Tatsuhiko Miyagawa miyagawa at gmail.com
Thu Oct 5 09:44:31 PDT 2006

perl -nlpe 's/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]//g'

On 10/6/06, Loo, Peter # PHX <Peter.Loo at source.wolterskluwer.com> wrote:
> Hi All,
> Will someone kindly send me a Perl one liner that will remove all CONTROL
> CHARACTERS from an input file and output to another file?

Tatsuhiko Miyagawa

More information about the SanFrancisco-pm mailing list