I have 5 files in a folder a.csv b.csv ....
I need to combine these files into one file called X.csv and in future keep merging the contents of X.csv with a,b,c etc.
Even with only two lines in each file I have error message saying that there is not enough memory - its essentially only copying 10 lines across. Im using the following command :
paste -d, *.csv >> X.csv.
However when i use
paste -d, *.csv > X.csv
There are no memory issues. This however I canont use since i need the information on the X.CSV file previously as well so I should only append not edit contents of the whole file.
Would anyone know how I achieve this? These are ',' separated CSV files and I would like to not copy the header (Row 1) which names the columns more than once.
I use MAC OSX Mavericks 8 GB Ram.
Thank You :)
ls -aland see if there is anything big and odd! Else try rebooting.