sed tips

Remove trailing space from a file using sed

$cat | sed 's/[ t]*$//' >