Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch to delete blank spaces in txt
Name: frn2000 Date: May 10, 2005 at 08:48:27 Pacific OS: DOS
Comment:
I need to write a batch file that would look a flat file and delete blank spaces (two or more; not between a name and last name, for example). The flat file has data coming from a mainframe with a fixed width and delimited by tildes (~).
Name: Mechanix2Go Date: May 10, 2005 at 19:42:54 Pacific
Reply:
This is all but impossible using the tools that DOS provides.
You will need a 3rd party utility.
M2
If at first you don't succeed, you're about average.
0
Response Number 2
Name: wizard-fred Date: May 11, 2005 at 01:20:17 Pacific
Reply:
Do you really need to delete the extra spaces? Many data bases can import fixed width token separated values. Is this a one time event or is it going to be run frequently? For a few times a text processor with search and replace can do this in a few minutes. A small program could be written in BASIC in a very short time.
Summary: Friends, how to delete double lines in txt-file using DOS batch. I'm happy for a solution with a 3rd party program, as long as it runs in a DOS batch file :-) ...
Summary: Hi FishMonger & Mechanix2go, Thanks for the replies firstly. Secondly, Fishmonger I am afraid perl is 2 big & complicated for me to use (Horses for courses & all that). I need to be able to use it wi...
Summary: Well folks, I received a reply from my co-worker regarding this subject. I was thrilled by the extrodinary amount of knowledge that he displayed, but the answer was to this question was avoided leavin...