Strip EOL whitespace

for file in *.php *.js *.css *.md; do perl -p -i -e "s/(?<=\S)[ \t]+$//" $file; done