Linux Learning
Tuesday, June 22, 2010
How to trim variable in linux.
if MACHINE_NAME=
ABCDF
use following simple commands to trim it.
# echo $(echo $MACHINE_NAME)
This will cause MACHINE_NAME to contain ABCDF without any white spaces in either left or right sides.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment