Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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
Replies are listed 'Best First'.
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 examining the Monastery: (14)
As of 2015-07-28 10:50 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 (254 votes), past polls