It was Wednesday, December 03, 2003 when Bob Showalter took the soap box, saying:
: The following one-liner will do the trick:
: 
:  perl -pe 'BEGIN {$/=\8192} tr/\040-\176/ /c' myfile
: 
: The /c on the tr/// operator complements the search range, so everything
: *not* in the range 040 to 176 gets changed to a space.
: 
: The BEGIN block sets $/ so that input gets processed in 8kb chunks,
: regardless of the format of the input files. (Can that be done with a
: command-line option to perl?)

  -0[octal]       specify record separator (\0, if no argument)

  Casey West

-- 
Shooting yourself in the foot with COBOL 
USEing a COLT 45 HANDGUN, AIM gun at LEG.FOOT, THEN place
ARM.HAND.FINGER on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to
HOLSTER. CHECK whether shoelace needs to be retied. 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to