Forrest logo
back to context overview

case

List of commands for case:

  • case:tldr:97bcb case: Match a variable against string literals to decide which command to run.
    $ case ${$tocount} in ${words}) ${wc -w README}; ;; ${lines}) ${wc -l README}; ;; esac
    try on your machine
    explain this command
back to context overview