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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Awk, sed and grep unable to handle special character in a file

Status
Not open for further replies.

dstxaix

Programmer
Dec 22, 2005
78
US
Hi,

I have a file with many records of the same length. One type of record contains some special characters. I get it from another system. When I try to remove some unwanted records from the file, I am facing a problem. The problem is, that AWK thinks the special character is teh end of teh record. This file comes fro a mainframe and I am assuming they are sending some packed fields causing this trouble. Can I somehow get around this? The problem is grep, sed and Awk all behave teh same way when they see teh special characters.

Any assistance is greatly appreciated.
 
man tr

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top