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!
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..
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 simple things like
gsub(/-/, "") but all that it gives me is the numbers, and not any of my other information.
I have no idea what I'm doing, so any help getting me to my eventual goal would be greatly appreciated! Even if it is, "you suck, start out by doing this instead".
It was finding the occurrences with my regular expression, but I don't know how to say "find the space between these numbers, but keep the numbers and delete the space". Any ideas?