Код: Выделить всё
./ScriptWithHelp.sh --helpКод: Выделить всё
if echo $1 | grep -q "--help"
then
echo "Help for using this script"
else
echo "Executing my script with arguments:"
echo $1
echo $2
fi
Код: Выделить всё
./ScriptWithHelp.sh --helpКод: Выделить всё
if echo $1 | grep -q "--help"
then
echo "Help for using this script"
else
echo "Executing my script with arguments:"
echo $1
echo $2
fi