You are here: PSPad forum > English discussion forum > Re: How to join lines with comma and no space?

Re: How to join lines with comma and no space?

#1 How to join lines with comma and no space?

Posted by: therium | Date: 10/31/2018 13:09 | IP: IP Logged

PSPad 4.6.2

I have several lines I want to join with commas, but the result can have no spaces. Starting lines:

one
three
four
two

I would like to get this result in a single longer line:

one,three,four,two

The reason I need no spaces is this list (which will actually be 40 lines in real life) is a parameter to a program. It's a list of directory names with no spaces.

In a Windows Server 2012 batch file I am unable to make a list of dirs into one output line separated only by commas.

Thanks!

Options: Reply | Quote | Up ^


#2 Re: How to join lines with comma and no space?

Posted by: pspad | Date: 10/31/2018 13:40 | IP: IP Logged

Use PSPad scripting. There is ready to use script what I made for SQL in list command

List conversion / List of items

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2018 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR