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
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