On a nix OS you can use:
find | xargs cat | sed ':a;N;$!ba;s/\n/ /g'
This will first find all files under the current folder, than concatenate them and than remove new line characters with sed
script that adds lines to a register without the new line.
I suspect from the use of copy
command that you are using Windows, you will have to find the windows equivalents to the nix commands.
find
for example can be replaced with dir /s /b
. type
might be a fine replacment for cat
. etc.
Or you can have a look in this answer https://stackoverflow.com/questions/127318/is-there-any-sed-like-utility-for-cmd-exe that explain how to use nix command tools on windows.