Find and concatenate

Merge all csv files in the download directory into merged.csv

$ find download -type f -iname '\*.csv' | xargs cat > merged.csv

Merge all sorted csv files in the download directory into merged.csv

$ find download -type f -iname '\*.csv' | sort | xargs cat > merged.csv
Comments