Skip to content

Instantly share code, notes, and snippets.

@paazmaya
Created August 8, 2016 08:46
Show Gist options
  • Save paazmaya/ac30c062b3073f91a817e810b29ce2b6 to your computer and use it in GitHub Desktop.
Save paazmaya/ac30c062b3073f91a817e810b29ce2b6 to your computer and use it in GitHub Desktop.
Rename test files to have the word test instead of tape in the end
find . -maxdepth 3 -type f -name '*_tape.js' \
-exec sh -c '(cd $(dirname {}) && pwd && base=$(basename {}) && git mv $base ${base/tape/test} )' ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment