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

Hi, I want to remove the "¦" on

Status
Not open for further replies.

tungaw2003

Technical User
Apr 24, 2003
25
PH
Hi,
I want to remove the "|" on the end of each record. How will i do it?.

CAROLINA|100000000.00|A000000003|10.0000000|11/05/2002|018|
|40000000.00|A000000004|10.0000000|11/05/2002|018|
CITY|70000000.00|A000000002|15.0000000|11/06/2002|011|
CITY|70000000.00|A000000002|15.0000000|11/06/2002|011|


Please help.


tungaw
 
It's not an awk solution but you can just use sed...

sed s/\|$// file1 > file2

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top