Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 chilling in the Monastery: (9)
As of 2014-09-19 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (132 votes), past polls