Skip to content

Instantly share code, notes, and snippets.

@atondwal
Last active December 18, 2015 21:49
Show Gist options
  • Save atondwal/5850409 to your computer and use it in GitHub Desktop.
Save atondwal/5850409 to your computer and use it in GitHub Desktop.
for i in `ls`; do mkdir `basename $i .baseline.dat`; done;
for i in `ls`; do mv $i `basename $i .baseline.dat`; done;
for i in {1992..2011}; do grep '^'$i *.dat > $i; done; #years.sh
for i in `ls`; do cd $i; ~/years.sh; cd ..; done;
for i in {1992..2011}; do mkdir -p IRIyears/$i; noglob zmv -W -C IRIsynthdb/*/$i IRIyears/$i/*; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment