Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: ascii problem

by duff (Parson)
on Jun 01, 2006 at 20:03 UTC ( [id://553134]=note: print w/replies, xml ) Need Help??


in reply to ascii problem

If on unix, cat filename | col -b should do the trick.

Unless, of course, it's actually the two characters ^ and H.

Replies are listed 'Best First'.
Re^2: ascii problem
by crashtest (Curate) on Jun 01, 2006 at 20:46 UTC

    Unless, of course, it's actually the two characters ^ and H.
    ... in which case -- staying with an all-UNIX solution -- you could convert the two characters ^ and H to the control-character ^H first 1:
    cat filename | sed 's!\^H!\x08!g' | col -b

    1 inserting non-ascii like \x08 might not work for all versions of sed

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-16 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found