How to use sed to replace a nonprinting character (ascii 1) in a text file

I am trying to replace a regularly occurring nonprinting character (ascii value 001) in a large text file. I would like to use sed, but I can't find a way to refer to a nonprinting character in the search tag. Can one use nonprinting characters in regular expressions?
Thanks.
nr-26nov07-deflines-RAW-part.txt
migilAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kent OlsenData Warehouse Architect / DBACommented:
Hi migil,

Different versions of sed work differently, so you might have to experiment, but this will work with some seds:

  sed 's/[\x01]//g' old > new

That will delete the 01 characters.  If you want to replace them, just enter the new value between the second and third '/'.


Good Luck,
Kent
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
migilAuthor Commented:
Thanks Kent,
It was cygwin sed on Win2k.
I suspected something like your suggestion, but could find no documentataion...
Best wishes,
mike
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.