Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy way to strip a code from a file

Status
Not open for further replies.
Mar 19, 2004
35
US
I know you Unix jockeys can do this in your sleep.

I need to strip out all occurences of 0x14 (dec 20) from a file. Or maybe convert them to a space.

What's the easiest way?

 
To get rid:
tr -d '\024' </path/to/file >output
To replace with space:
tr '\024' ' ' </path/to/file >output

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top