The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #8 (permalink)  
Old 02-01-2008
kanu_pathak kanu_pathak is offline
Registered User
 

Join Date: Jan 2008
Location: India
Posts: 34
Thanks Perderabo...

I am using AIX, version 4.

I want to keep the special characters like double quotes("), spaces, +, - etc. retained. When I used :
tr -c '[:print:][:cntrl:]' ' ' < input_file > output_file

all these characters also got removed. (Anything to do with [:print:] ?)


Also, [:alnum:] didn't change the file itself :

tr -c '[:alnum:]' ' ' < subs.bak > sub.err


Have got tired of using so many options. Have to resolve this issue as soon as possible. Clients jumping on me.

Thanks
Kanu
Reply With Quote