mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 01:00:29 +00:00
Update cheatsheets
This commit is contained in:
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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 {{$ANIMAL}} in {{cat}}) {{echo "It's a cat"}} ;;& {{cat|dog}}) {{echo "It's a cat or a dog"}} ;;& *) {{echo "Fallback"}} ;; esac`
|
||||
|
||||
- Continue to the next pattern's commands without checking the pattern:
|
||||
|
||||
`case {{$ANIMAL}} in {{cat}}) echo "It's a cat" ;& {{dog}}) echo "It's either a dog or cat fell through" ;& *) echo "Fallback" ;; esac`
|
||||
`case {{$ANIMAL}} in {{cat}}) echo {{"It's a cat"}} ;& {{dog}}) {{echo "It's either a dog or cat fell through"}} ;& *) {{echo "Fallback"}} ;; esac`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user