CSV files are basically text files which can be opened on a
spreadsheet like Excel, Google Sheets online or any of its equivalent.
A notepad editor can open a CSV files but it's formatting
won't look great. By using Excel or Google sheets to open a CSV file it will
look nice and won't look daunting to work with the file.
Opening multiple CSV file and copying the contents to a
single Excel is quite tedious and not efficient.
So, how to make things easier?
A simple copy command will concatenate CSV files into a
single file.
Here's how to do it in Windows.
Copy all the CSV files into an empty directory.
Open command prompt and browse to the directory where the
CSV files are located.
Ex: cd CSV_Directory
At CSV_Directory, type this command: copy *.csv csv_files_in_oneFile.csv
After pressing enter key all the CSV files within that
directory will be concatenated to "csv_files_in_oneFile.csv".
So, basically the syntax is: copy "input_all_csv" "output_filename_all csv"
* is a wildcard which means all or anything, *.csv means any
files regardless with the filename with ".csv" extension.
In Linux it would be the same copy command to combine all
CSV files.
In Linux terminal type: cp *.csv combined_CSV_files.csv
So, the new file with all the concatenated files would be
"combined_CSV_files.csv".
Cheers! Till next time.
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Comments
Post a Comment