Help with Shell Script Needed
Hi all,
I'm a newbie. I'm thinking of making a shell script which will list a directory for *.csv files and merge all the files into a single file called data.csv.
However, i have no idea how to. What i do currently is to manually issue the following command to merge multiple CSV files into one:-
cat file1.csv >> data.csv
cat file2.csv >> data.csv
etc..
I need a script to help me in doing so, so i need not worry about what file name would the csv be, and they'll all be merged into a single data.csv whenever i execute the script.
Can anyone help? Thanks alot!
|
Recent comments
20 hours 19 min ago
20 hours 25 min ago
1 day 1 hour ago
1 day 8 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 14 hours ago
1 day 21 hours ago
2 days 56 min ago
2 days 2 hours ago