Last active
December 7, 2016 09:56
-
-
Save guigmaster/5562beb5795d71b50cc39311f4429ec5 to your computer and use it in GitHub Desktop.
Bash tips and Utils
This file contains 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
find . -name "*.t1" -exec bash -c 'mv "$1" "${1%.t1}".t2' - '{}' \; |
This file contains 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
find ./ -iname "*.php" -type f -exec sed -i 's/\t/{numberSpaces}/g' {} \ |
This file contains 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
find . -type f -name "$1" | xargs -0 sed -i 's/\r//g' |
This file contains 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
find . -type f -name '*.php' -exec php -l {} \; |grep -v "No syntax errors detected" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment