Skip to content

Instantly share code, notes, and snippets.

@vykster
Created August 28, 2014 20:05
Show Gist options
  • Save vykster/ee21a4b84ba44e6505ae to your computer and use it in GitHub Desktop.
Save vykster/ee21a4b84ba44e6505ae to your computer and use it in GitHub Desktop.
split counties
#!bin/bash
for f in v1-*
do
x=$(echo $f | tr '[:upper:]' '[:lower:]' | sed 's/v1-//g' | sed 's/\.csv//g')
echo "Processing $x"
mkdir $x
mkdir $x/2014-06-02
mv $f $x/2014-06-02/v1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment