thekube/options-example.sh
Adolfo Delorenzo fc72321f62 updates
2023-12-20 11:11:49 -06:00

13 lines
212 B
Bash

#!/bin/bash
foo1() { echo 'hello from foo1!'; }
foo2() { ls -l; }
foo3() { echo 'hello from foo3!'; }
# read -p "Enter a Number (1,2, or 3): " num
#if [[ $1 = [123] ]]; then # validate input
# foo"$1"
#fi
$1