Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-24-2003, 03:36 AM   #1
Registered: Nov 2002
Location: Maryland
Distribution: redhat 9
Posts: 31

Rep: Reputation: 15
How to remove or strip control chars in the 'script' utility?


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!)

Old 10-24-2003, 02:11 PM   #2
Kurt M. Weber
Registered: Oct 2003
Distribution: Slackware
Posts: 335

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Strip / Remove attachments (Replace with TXT file if Possible) Vince0000 Linux - General 2 09-17-2010 07:46 PM
grep searching for control chars shell issues gquiring Linux - General 2 05-02-2005 03:25 PM
PHP-Remove multiple chars Boby Programming 1 10-01-2004 09:34 PM
looking for script - strip out all # comments itsjustme Programming 3 03-11-2004 11:57 AM
logon script not working (it has more than 8 chars) alris Linux - General 0 06-05-2003 02:46 PM

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration