I want to check if my string contains one or more stars.
I tried this:
if [[ $date_alarm =~ .*\*.* ]]
then
...
fi
It worked when I run the script directly, but not if this script is called during shutdown (script installed at runlevel 0 and 6 via update-rc.d)
Any idea suggestion?
thanks
source
share