#!/bin/bash
# file recursive removal of whitespaces (but not form-feed) at the end of a line
for f in `find . -name *[.][ch]`
do
  echo $f
  mv $f $f.tmp
  sed -e "s/[\t ]*$//g" $f.tmp >$f
  rm $f.tmp
done
