I created this script called ShellScript.sh, and in this script is as follows:
#!/bin/sh
# Shell script
function help {
echo ""
echo "./ShellScript.sh {start | stat}"
echo ""
echo "These are some commands:"
echo ""
# Start command
echo "start"
echo "This starts the process"
echo ""
# Stat command
echo "stat"
echo " abcxyz"
echo ""
}
However, on the command line, when I type "./ShellScript.sh help", nothing happens. I've been trying to figure out this problem for a day now and am sure I'm missing something small but I don't know what it is!
helpfunction, you need to add something more.