I run a command:
script.sh ___bubu__
The content of the script.sh
is:
echo $1
When executed I get
___bubu__
How can I remove the trailing spaces from command line passed arguments? I copy some params from a file and when pasting into command line I get some spaces and I do not want to manually remove the space. I am planning to use $1 as a parameter in a script. For example I want to create a folder with $1