11-16-2009
11,
0
Join Date: Feb 2009
Last Activity: 2 May 2013, 1:38 PM EDT
Posts: 11
Thanks Given: 0
Thanked 0 Times in 0 Posts
TR -d Help
I want to strip off '\032' character from a file using:
tr -d '\032' < oldfile > newfile
this outputs the contents of oldfile to newfile, but I wanna do that in the same file i.e. remove the \032 character from the old file. I tried:
tr -d '\032' < oldfile > oldfile
But the oldfile contents were lost. How to do that in one cmd? Cannot use mv to rename new file to old.
Thanks