Computing.Net > Forums > Programming > Script help - New line and character removal?

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.

Script help - New line and character removal?

Reply to Message Icon

Name: masif
Date: August 25, 2009 at 00:46:35 Pacific
OS: Windows XP
CPU/Ram: 2gb
Subcategory: Batch
Comment:

Hi,

I am in need of some script help if possible.

I have a few email databases that I hope to compile into one bulk database.

My problem is I have a load of email addresses in txt files like:

blahblah@mail.com; blah@hotmail.com; etc

Is there a script that can be created where I can make every email address on a new line ie:

blahblah@mail.com
blah@hotmail.com

and a script that will also remove the ' ; '??

Help would be very much appreciated
:)



Sponsored Link
Ads by Google

Response Number 1
Name: Judago
Date: August 25, 2009 at 01:08:44 Pacific
Reply:

If none of the addresses conatin ,=<>|^%, tabs or spaces it should be pretty easy.

for /f "usebackq eol=%% delims=" %%a in ("your text file") do (
    for %%b in (%%a) do (
        >>"newtextfile" echo %%b
    )
)


0
Reply to Message Icon

Related Posts

See More


How tp copy, not overwrit... Batch file calls second, ...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Script help - New line and character removal?

new line after n'th character in text file www.computing.net/answers/programming/new-line-after-nth-character-in-text-file/19623.html

PPC: New Line character won't work www.computing.net/answers/programming/ppc-new-line-character-wont-work/14131.html

Plz help with adsi and exchange ser www.computing.net/answers/programming/plz-help-with-adsi-and-exchange-ser/10116.html