-
-
Save jcooklin/3703567e2df386c41bf6 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
find . -path './.git' -prune -type f -o -name "*go" -o -name "*sh" -o -name "*md" -o -name "*json" -o -name "*Dockerfile" -o -name "Makefile" -o -name "Vagrantfile" -o -name "NOTICE"| grep -v '/cmd$' | xargs gsed -i 's/pulse/snap/g' | |
find . -path './.git' -prune -type f -o -name "*go" -o -name "*sh" -o -name "*md" -o -name "*json" -o -name "*Dockerfile" -o -name "Makefile" -o -name "Vagrantfile" -o -name "NOTICE"| grep -v '/cmd$' | xargs gsed -i 's/Pulse/Snap/g' | |
find . -path './.git' -prune -type f -o -name "*go" -o -name "*sh" -o -name "*md" -o -name "*json" -o -name "*Dockerfile" -o -name "Makefile" -o -name "Vagrantfile" -o -name "NOTICE"| grep -v '/cmd$' | xargs gsed -i 's/PULSE/SNAP/g' | |
#change directories names that contain pulse | |
for i in $(find . -type d | grep pulse); do | |
echo $i | sed s/pulse/snap/ | xargs -I{} mv $i {} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment