Match a variable against string literals to decide which command to run

case

case {{$tocount}} in {{words}}) {{wc -w README}}; ;; {{lines}}) {{wc -l README}}; ;; esac

click the source code to copy