I have written a shell script that outputs a modified time, according to UTC. At present, my if statements to grab and alter the hour are as follows:
if [[ "$emoji" =~ \.☁ ]];
then
((timeShow = time - modValue))
fi
At present, the emoji will be wrapped in format tags for polybar. Namely, the variable will be something like %{F#1a88a4}☁%{F-}
. So I am trying to check whether the string contains the ☁ character using the regex above. Unfortunately, this does not appear to work.
.
in a string that doesn't contain a.
. Just don't do that.