LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 15
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
 
Old 10-24-2003, 01:11 PM   #2
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

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


Reply



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 06:46 PM
grep searching for control chars shell issues gquiring Linux - General 2 05-02-2005 02:25 PM
PHP-Remove multiple chars Boby Programming 1 10-01-2004 08:34 PM
looking for script - strip out all # comments itsjustme Programming 3 03-11-2004 10:57 AM
logon script not working (it has more than 8 chars) alris Linux - General 0 06-05-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:39 AM.

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