Skip to content

Instantly share code, notes, and snippets.

@guigmaster
Last active December 7, 2016 09:56
Show Gist options
  • Save guigmaster/5562beb5795d71b50cc39311f4429ec5 to your computer and use it in GitHub Desktop.
Save guigmaster/5562beb5795d71b50cc39311f4429ec5 to your computer and use it in GitHub Desktop.
Bash tips and Utils
find . -name "*.t1" -exec bash -c 'mv "$1" "${1%.t1}".t2' - '{}' \;
find ./ -iname "*.php" -type f -exec sed -i 's/\t/{numberSpaces}/g' {} \
find . -type f -name "$1" | xargs -0 sed -i 's/\r//g'
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