Trim a string in shell script
Nice trick just using echo command:   $ str="  a string  " $ echo "[$str]" [  a string  ]  $ new=$(ec...
Tags: bash, shell, trim