#! /bin/ksh

exec sed "s/$1[ 	]*$//"

exit

the end.
