You are here: PSPad forum > English discussion forum > Re: How to join lines with comma and no space?
Posted by: therium | Date: 2018-10-31 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!
Posted by: pspad | Date: 2018-10-31 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
Editor PSPad - freeware editor, © 2001 - 2023 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR