case
Verified for current stable LTS
Case Command: Continue To Next Patterns Commands
Use for continue to next patterns commands with Case. Exact CLI syntax to continue to next patterns commands using Case.
When to use this: Use for continue to next patterns commands with Case.
Command Syntax
case <$ANIMAL> in <cat>) <echo "It's a cat"> ;& <dog>) <echo "It's either a dog or cat fell through"> ;& *) <echo "Fallback"> ;; esac case <$env:ANIMAL> in <cat>) <echo "It's a cat"> ;& <dog>) <echo "It's either a dog or cat fell through"> ;& *) <echo "Fallback"> ;; esac Command Breakdown
case is the base executable for this command.
FAQ
Purpose: Exact syntax to continue to next patterns commands using Case.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Case Command: Allow Matching Multiple Patterns
case <$ANIMAL> in <cat>) <echo "It's a cat"> ;;& <cat|dog>) <echo "It's a cat or a dog"> ;;& *) <echo "Fallback"> ;; esac Case Command: Allow Multiple Patterns case <$ANIMAL> in <cat>) <echo "It's a cat"> ;;& <cat|dog>) <echo "It's a cat or a dog"> ;;& *) <echo "Fallback"> ;; esac Case Command: Combine Patterns With Fallback case <$COUNTRULE> in <[wW]|words>) <wc --words README> ;; <[lL]|lines>) <wc --lines README> ;; *) <echo "what?"> ;; esac Case Command: Continue Next Patterns Commands case <$ANIMAL> in <cat>) <echo "It's a cat"> ;& <dog>) <echo "It's either a dog or cat fell through"> ;& *) <echo "Fallback"> ;; esac Case Command: Display Help For Case help case