1
Is there an easy way to do this? I'm actually combining about 500 files using copy *.txt myoutputFile.txt
. The problem is, that command inserts the new/next file at the current/end position of the file, where I need it to be inserted on a new line.
1just
echo >> "$f"
would work... but OP's use of 'copy' infers OP is on a windows box. Alas. You'd have to create a file containing a CR, then y'know... it's just painful to do it on a Windows box. Wait! There's Quickbasic scripts in MS Word! To the BatMobile!! (Ain't gonna do it!) Even using a Linux LiveCD would be faster. – lornix – 2013-07-25T02:58:16.380on windows , one place they suggest "do more" | for %%a in (*.txt) do more %%a >>file.doc | . and not using a .txt extention on the output so a loop doesnt occur. This method for the merging puts them on seperate lines, so no need to add to each file. – Psycogeek – 2013-07-25T03:23:46.267