mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-17 14:57:18 +03:00
case: add Japanese translation (#11452)
This commit is contained in:
parent
0f0c9da99e
commit
eead50fd91
12
pages.ja/common/case.md
Normal file
12
pages.ja/common/case.md
Normal file
@ -0,0 +1,12 @@
|
||||
# case
|
||||
|
||||
> 複数の選択肢がある条件文を作成するための Bash 組み込み構文。
|
||||
> 詳細はこちら: <https://www.gnu.org/software/bash/manual/bash.html#index-case>
|
||||
|
||||
- 変数を文字列リテラルとマッチさせ、実行するコマンドを決める:
|
||||
|
||||
`case {{$tocount}} in {{words}}) {{wc -w README}}; ;; {{lines}}) {{wc -l README}}; ;; esac`
|
||||
|
||||
- パターンは | で結合し、どれにも該当しないパターンには \* を使う:
|
||||
|
||||
`case {{$tocount}} in {{[wW]|words}}) {{wc -w README}}; ;; {{[lL]|lines}}) {{wc -l README}}; ;; *) {{echo "what?"}}; ;; esac`
|
Loading…
Reference in New Issue
Block a user