SyntaxFix
Write A Post
Hire A Developer
Questions
#Execute this script with the string argument passed in double quotes !! #var2 gives the string without spaces. #$1 is the string passed in double quotes #!/bin/bash var2=`echo $1 | sed 's/ \+//g'` echo $var2