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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.