Skip to content

Instantly share code, notes, and snippets.

@mark-d-holmberg
Created September 11, 2014 20:15
Show Gist options
  • Save mark-d-holmberg/1a37599eac23d47c647a to your computer and use it in GitHub Desktop.
Save mark-d-holmberg/1a37599eac23d47c647a to your computer and use it in GitHub Desktop.
Copy files recursively
for i in `find . -name "feature-*" -type d`; do
nice=`echo $i | sed 's!^\.\/!\/!g'`;
pushd /Users/mark/Desktop/test$nice;
mv *.html ~/dev/stuff/app/views/feature/;
mv *.js ~/dev/stuff/app/assets/javascripts/;
mv css *.css ~/dev/stuff/app/assets/stylesheets/;
mv *.jpg *.png *.gif ~/dev/stuff/app/assets/images/;
popd;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment