1
0

clean_code.sh 302 B

1234
  1. #!/bin/sh
  2. find . -type f \( -name "*.php" -or -name "*.css" -or -name "*.js" -or -name "*.html" -or -name ".htaccess" \) | xargs perl -wi -pe 's/\s+$/\n/'
  3. find . -type f \( -name "*.php" -or -name "*.css" -or -name "*.js" -or -name "*.html" -or -name ".htaccess" \) | xargs perl -wi -pe 's/\t/ /g'