LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to remove or strip control chars in the 'script' utility? (https://www.linuxquestions.org/questions/linux-general-1/how-to-remove-or-strip-control-chars-in-the-script-utility-107904/)

fieldmethods 10-24-2003 02:36 AM

How to remove or strip control chars in the 'script' utility?
 
Hi,

I know the documentation explains that script(1) doesn't handle control characters.

Is there some way I can either a) strip them or b) prevent them in the first place?

I'm trying to use a very large, complicated bunch of shell scripts & I would like a better tool for trading instructiosn with my coworkers.

(I would have looked it up myself... but "script" is well-nigh ungoogleable!)

-pat

Kurt M. Weber 10-24-2003 01:11 PM

Look into sed or perl. Both are excellent at string and regular-expression parsing.


All times are GMT -5. The time now is 05:36 PM.