651
Post New Requests Here / Re: Merge .txt files but with the copy/paste method
« Last post by jgpaiva on September 05, 2009, 05:08 PM »It's quite easy.. Just open a console in the folder where you have your files, and type the following command:
It still does not fix the problem with the different encodings, but it might be a first step in the right direction.
ps: DON'T name the output with the .txt extension, or it'll be read by the script and it'll enter an infinite loop
cat *.txt | sed "s/\s\+/,/g" > output.out
That'll read all the txts in the folder, pass them to sed, which then replaces consecutive blank spaces with a comma, and then outputs the result of this command to a file named output.out.It still does not fix the problem with the different encodings, but it might be a first step in the right direction.
ps: DON'T name the output with the .txt extension, or it'll be read by the script and it'll enter an infinite loop


Recent Posts

), should be able to save all of the files in utf-8, which would solve that problem too.