Skip to content

Instantly share code, notes, and snippets.

@nazt
Created July 17, 2020 19:07
Show Gist options
  • Save nazt/8acfb92efd95b67ef403f9577b443b36 to your computer and use it in GitHub Desktop.
Save nazt/8acfb92efd95b67ef403f9577b443b36 to your computer and use it in GitHub Desktop.
x.sh
echo "$1"
if test $# -gt 0; then
export ID=$1
else
echo "no output dir specified"
exit 1
fi
pushd /root/dustboy-buffer
influx2csv clear-scripts --out-dir=$ID
for i in $(find $ID/scripts -name \*.sh); do echo "$i"; bash "$i"; done
influx2csv clear-scripts --out-dir=$ID
#find . -name ".DS_Store" -delete
#find . -size 0 -delete
#find . -type d -empty -delete
#
#for i in $(find $ID/csv/ -name \*.csv); do echo "$i"; csv2line convert --csv-file="$i"; done
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment