Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Wanted: humanly readable `script` output

by swampyankee (Parson)
on May 04, 2008 at 19:50 UTC ( #684468=note: print w/ replies, xml ) Need Help??


in reply to Wanted: humanly readable `script` output

It shouldn't be too difficult to write a Perl script to strip control characters; I doubt if a module is needed. Look in perlre, perlretut, and perlrecharclass.


Information about American English usage here and here. Floating point issues? Please read this before posting. — emc


Comment on Re: Wanted: humanly readable `script` output
Re^2: Wanted: humanly readable `script` output
by Anonymous Monk on May 05, 2008 at 14:46 UTC
    What about cat -v ?

      The copy of the man pages I have for cat (GNU coreutils 6.9.92.4-f088d-dirt January 2008) says this: "-v, --show-nonprinting
      " use ^ and M- notation, except for LFD and TAB;"
      it doesn't strip control characters, but maps them to a different form. The FreeBSD entry for cat has a similar, but not identical description for the -v option.


      Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2015-07-04 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls