[shell] 간단한 rtrim 구현 STR="foobar " ## 뒤 공백 STR="`echo ${STR}`" ## 변수처리시 앞뒤 따옴표처리 echo "|${STR}|" 다른방법 echo "foobar " | xargs echo -n