THanks. worked fine as well !
> -----Original Message----- > From: John W. Krahn [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:24 PM > To: [EMAIL PROTECTED] > Subject: Re: remove control chars > > > Including "\t" and "\n"? > > > > Is the perl getc() function the best way to look at one > char at a time? > > In any language doing it one character at a time is not the best way. > > perl -i.bak -pe's/[[:cntrl:]]/ /g' file1 file2 file* > > If you don't want to include "\t" and "\n" in that: > > perl -i.bak -pe's/[^\t\n[:^cntrl:]]/ /g' file1 file2 file* > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]