On Wed, Jul 27, 2005 at 07:03:16PM +0100, Maciej W. Rozycki wrote: > It doesn't wipe other rubbish like spaces followed by tabs, though -- > e.g. ones that would match "^ \t". Perhaps `indent' could help with them, > but I trust my fingers and eyes instead. ;-) Of course it does: [ralf@box ~]$ echo -ne ' \t\t' | perl -pi -e 's/[ \t]+$//' | od -x 0000000 [ralf@box ~]$ Ralf