Created
January 19, 2018 11:57
-
-
Save juliandescottes/b212a4dcc26137ba2f91aeb4465d3e5f to your computer and use it in GitHub Desktop.
hg mv bulk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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