output biner trim bash

sed '$ s/\xff*$//' file > file.out
steamboatid