Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Removing Control Characters from a File

by jmcnamara (Monsignor)
on Jun 04, 2002 at 22:57 UTC ( [id://171669]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        perl -0777lpwi -030e0 file
    
        0777    Set $/ to 0777.
    ...
        i       Make the changes in-place.
        030     Set $/ to 030 (^X). $\ is still 0777.
        e0      Empty program.
    
  2. or download this
        perl -i -pe 's/\30//g' file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://171669]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found