Felipe Salvador
2018-03-29 18:12:21 UTC
Hi list,
I'm trying to make bash to expand a brace expansion in a if statement.
So, I've
if [ "$GTTY" = tty{0..10} ]; then
msger=echo
else
msger=notify-send
fi
where $GTTY is $(tty | cut -d'/' -f3).
It doesn't work.
I'm reading allot of web pages, but I cannot get over.
Could you please help me?
Kind regards
I'm trying to make bash to expand a brace expansion in a if statement.
So, I've
if [ "$GTTY" = tty{0..10} ]; then
msger=echo
else
msger=notify-send
fi
where $GTTY is $(tty | cut -d'/' -f3).
It doesn't work.
I'm reading allot of web pages, but I cannot get over.
Could you please help me?
Kind regards
--
Felipe Salvador
Felipe Salvador