Append all CSV files in a directory into one large file
I need to find all of the .csv files in a directory and append them (with these little breaks) into one large file. Why does this script only produce largefile.txt with the contents of the last file only? PS, I'm running on cygwin.
Code:
#!/bin/bash Heh, found it as I was posting. The first append was a single so it was overwriting the file every loop. The version above is fixed. |
it wasn't realistically going to be anything else... :) removing from zero posts.
|
cat *.csv > largefile.txt
|
All times are GMT -5. The time now is 01:16 AM. |