Useful sed(1) regular expressions
Source code cleanup:
sed -i '' -E s/\ \ /\ /g *.c *.h
sed -i '' -E s/^\ \ \ \ \ \ \ \ /\ /g *.c *.h
sed -i '' -E s/\ \ \ \ \ \ \ \ \ /\ \ /g *.c *.h
sed -i '' -E s/\ +\$//g *.c *.h
Subsistitue / with \/:
sed -i '' -E s/\\\//\\\\\\\\\\\\\\\//g
Just joking… No, nobody will ever try to use the above command :-)