Skip to content

Instantly share code, notes, and snippets.

@juliandescottes
Created January 19, 2018 11:57
Show Gist options
  • Save juliandescottes/b212a4dcc26137ba2f91aeb4465d3e5f to your computer and use it in GitHub Desktop.
Save juliandescottes/b212a4dcc26137ba2f91aeb4465d3e5f to your computer and use it in GitHub Desktop.
hg mv bulk
ROOT="devtools/client/webconsole/new-console-output/test/mochitest"
for FILE in $(ls $ROOT)
do
if [[ "$FILE" == *"test-bug-595934"* ]]; then
NEW_FILE="${FILE/bug-595934/message-categories}"
hg mv $ROOT/$FILE $ROOT/$NEW_FILE
echo "Moved $FILE to $NEW_FILE"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment