System today is unavaile. Need unix access to test #!/bin/sh script. Does anybody knows a site that will allow me to set a unix shell account with telnet access?
I know I can use grep to see if certain string is present. Is there something that I can do with just "if".
Something like :
if [ $sript_name ???bla_bla_bla "_encrypt_" ]
then
{
echo "Sorry, script $0 you called is a wrong script"
exit 2
}
fi
echo "Good usage of script. Continue."
exit 0
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.