Computing.Net > Forums > Disk Operating System > batch to delete blank spaces in txt

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

Reply to Message Icon

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 (~).



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


disk state Not sure where to post



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: batch to delete blank spaces in txt

how to delete double lines in txt? www.computing.net/answers/dos/how-to-delete-double-lines-in-txt/13875.html

Removing blank characters in batch www.computing.net/answers/dos/removing-blank-characters-in-batch/16121.html

edit a blank space in text file?? www.computing.net/answers/dos/edit-a-blank-space-in-text-file/3534.html