Hey kmarris.
Try adding an equal sign after what you're assigning an alias to, like so:
$ alias test="ps | awk '{print $1}'"
$ test
PID TTY TIME CMD
9711 pts/6 00:00:00 bash
17406 pts/6 00:00:00 ps
17407 pts/6 00:00:00 awk
Hope this helps.
borne2bash
what's up ljsmith91.
see if the following will work for you:
#!/bin/sh
myvar="_test$"
test=$(echo $myvar | grep -i '_test\$')
if [ -z "$test" ]
then
alert_type="Production"
else
alert_type="Test"
fi
echo "$alert_type"
i changed the value of $myvar to various cases and it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.