pandithiru
Programmer
Need help to trim spaces on either side of the string.
example:
var = " UNIX is always FUN! "
I need to trim the spaces before and after the string and my variable should have the following
var="UNIX is always FUN!"
I tried the tr cmd but did not work as expected.
Thanks in advance,
pandithiru
example:
var = " UNIX is always FUN! "
I need to trim the spaces before and after the string and my variable should have the following
var="UNIX is always FUN!"
I tried the tr cmd but did not work as expected.
Thanks in advance,
pandithiru