3 # usage: help - Lists all the available commands
4 # help <command> - Detailled explanation of how "command" works
8 HELPTEXT
="Hi $USER, Run 'help' for help, 'help <command>' for specific help on a command, run 'exit' to exit. Available commands:"
10 HELPTEXT
="Hi $USER, Run 'help' for help, 'help <command>' for specific help on a command. Available commands:"
15 if [[ ! -z $1 ]]; then
17 if [[ -f $cmd && -x $cmd ]]; then
18 awk 'NR>=3&&NR<=4' $cmd | cut
-c 3-
20 echo "command \"$cmd\" doesn't exists"
28 *) [ -f "$cmd" ] && [ -x "$cmd" ] && echo "$cmd" ;;