Strip leading and trailing spaces only in a shell variable with embedded spaces | Unix Linux Forums
I am trying to strip all leading and trailing spaces of a shell variable using either awk or sed or any other utility, however unscuccessful and need your help. echo \$SH_VAR ......