find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex.