Skip to content

Instantly share code, notes, and snippets.

@clayperez
Created September 23, 2017 20:57
Show Gist options
  • Save clayperez/9cdb6c265557226aaf1cbfb21c5abc3f to your computer and use it in GitHub Desktop.
Save clayperez/9cdb6c265557226aaf1cbfb21c5abc3f to your computer and use it in GitHub Desktop.
JOIN CSV FILES
#!/bin/bash
DATETIME=$(date +%Y%m%d)
echo "MOVE ALL CSV FILES INTO A SINGLE FILE."
echo "join [outputfile]"
mkdir output
mkdir ./output/$1_$DATETIME
cat *.csv >./output/$1_$DATETIME.csv
mv *.csv ./output/$1_$DATETIME
open ./output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment