the input is a '*' and I want to print it and detect it
Content of script.sh:
MARK=$1
echo "STRING: " $MARK
if [$MARK = "\*"]; then
echo 'IT IS A *'
fi
Happens that echo $MARK shows the name of the file and there is an error in the if
the input is a '*' and I want to print it and detect it
Content of script.sh:
MARK=$1
echo "STRING: " $MARK
if [$MARK = "\*"]; then
echo 'IT IS A *'
fi
Happens that echo $MARK shows the name of the file and there is an error in the if