clean() { [ -f "$1" ] && sed -i 's/[ \t]*$//' "$1" } find | while read file; do clean "$file"; done true