結果 : bash remove trailing characters from string