Computing.Net > Forums > Windows XP > CMD: Multiiple lines output to one

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.

CMD: Multiiple lines output to one

Reply to Message Icon

Name: blink
Date: January 11, 2007 at 00:22:15 Pacific
OS: XP
CPU/Ram: P4/1GB
Product: HP
Comment:

I want to export a list of groups a user is a memberof. I use a dsquery command for this.

Problem is this outputs multiple lines where I'd want everything in one line, divided by a semicolon so I can import it in excel.

What is the best way to do this?



Sponsored Link
Ads by Google

Response Number 1
Name: Johnw
Date: January 11, 2007 at 01:51:33 Pacific
Reply:

Maybe using csv in this utility may help.

ASAP Utilities
http://www.all4you.dk/FreewareWorld...
http://www.asap-utilities.com/

18 pages of other possibles here.
http://www.all4you.dk/FreewareWorld...


0

Response Number 2
Name: blink
Date: January 11, 2007 at 01:55:02 Pacific
Reply:

It probably will, but how will this get multiple lines output turned into one single line?


0

Response Number 3
Name: Mechanix2Go
Date: January 11, 2007 at 07:16:03 Pacific
Reply:

I dunni dsquery, but get this util:

Change

Then:

dsquery > somefile
change somefile 13,10 ";"



=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 4
Name: Michael J (by mjdamato)
Date: January 11, 2007 at 07:51:24 Pacific
Reply:

You could use Word to replace the line breaks with a comma (a comma is the standard delimiter, not the semicolon).

Go to Edit<Replace. Then select the "More" button. Then at the botton expand the "Special" button. The option for your line breaks could be "Paragraph Mark", "Manual Page Break", or something else. You might have to do some trial and error to find the right one.

If this is something you will be doing a lot I would suggest creating a script to automate.

Michael J


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Cannot install Windows In... MBR Reinitialize how to



Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: CMD: Multiiple lines output to one

Converting to one partition www.computing.net/answers/windows-xp/converting-to-one-partition/180948.html

Hooking 2 pc's to one Cable modem www.computing.net/answers/windows-xp/hooking-2-pcs-to-one-cable-modem/95296.html

No hard disk drive detected?? www.computing.net/answers/windows-xp/no-hard-disk-drive-detected-/116134.html