Files
tldr/pages.ko/common/case.md
K.B.Dharun Krishna 8538a31451 pages/*: add standard translation and links (#11331)
* pages/*: add standard translation and links

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix1: false positives; standardize Bengali, Hindi, Nepali periods

* fix: periods in recently added Bengali pages

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix: false positives in modified files

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: update to native period in Bengali l10n

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-11-06 14:02:31 +05:30

502 B

case

표현식의 값에 근거하여 분기. 더 많은 정보: 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