Problem using gsub in gawk

view full story

http://www.unix.com – I know that most of you guys probably won't reply to this, because you'll feel like my post doesn't even deserve a glance. However, for those of you that do decide to help- thank you! Code: TRAILS TA 2700 E Main St ALBERT LEA , MN 56007  507-373-4200 TRUCKER’S INN State Hwy 30 AT I 35 N ELLENDALE , MN 56026  507-688-9433 and I want it to look like this at the end.. Code: TRAILS T|2700 E Main St|ALBERT LEA|MN|56007|507373420| TRUCKER’S IN|State Hwy 30 AT I 35 N|ELLENDALE|MN|56026|507688943| I am obviously a beginner with gawk. I have started out by using simp (HowTos)