LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 03: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, 02:11 PM   #2
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

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


Reply


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 02:28 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration