http://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html
find . -name '*.[ch]' | xargs perl -pi -e 's/\t+$//; s/ +$//' Thanks to Ludovic.