#!/bin/bash # find . -name "*.[Jj][Aa][Vv][Aa]" -exec sed -i -e "s/[ \t]*$//" {} \;