Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script troubles.



Hullo,

I'm having trouble with a UNIX script (K-shell in HP-UX) and was hoping
someone could help.  I've got a file I'm trying to send that has bad
characters in it (ASCII 142).  I could write a C program, but I'm trying to
avoid that.  Is there a way I could get a shell command to do something like
this:

cat infile.dat | sed "s/<<junk>>/<<blank>>/g" > outfile.dat

The stream editor is easy enough, but I can't seem to get it to recognize
the bad character.  Any ideas?

AdvThanxance,
John Whitfield


-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com


-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org