Sep 28, 2004 #1 ianicr IS-IT--Management Nov 4, 2003 230 GB Hi. I've got a file with UK postcode sectors in it eg. AL 1 1 B 1 3 CH12 4 DE 3 5 and I need to remove all the spaces in the file before the last one to make the file: AL1 1 B1 3 CH12 4 DE3 5 Does anyone know an easy way to do this? Thanks
Hi. I've got a file with UK postcode sectors in it eg. AL 1 1 B 1 3 CH12 4 DE 3 5 and I need to remove all the spaces in the file before the last one to make the file: AL1 1 B1 3 CH12 4 DE3 5 Does anyone know an easy way to do this? Thanks
Sep 28, 2004 1 #2 CaKiwi Programmer Apr 8, 2001 1,294 US The following awk script is one way. { a="" for (j=1;j<NF;j++) a=a $j print a,$NF } CaKiwi Upvote 0 Downvote
Sep 28, 2004 Thread starter #3 ianicr IS-IT--Management Nov 4, 2003 230 GB If I could give you more stars I would!!! thanks a lot!! Upvote 0 Downvote