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

Chris Palmer chris at noncombatant.org
Thu Oct 5 10:32:29 PDT 2006

Loo, Peter # PHX writes:

> Will someone kindly send me a Perl one liner that will remove all
> CONTROL CHARACTERS from an input file and output to another file?

I'll say it: RTFM.  In this case, you could have found the answer by
reading the perlre man page and searching for the string "control".  In
my case, the best answer is found at the second match (the "cntrl" named

More information about the SanFrancisco-pm mailing list