*Tags*: cmd:case
# all must be in current directory: case "$*" in */*) echo "nom quitting: I can't handle '/'s." >&2; exit ;; esac
xsel -p | perl -pe 's/[a-z]/[$&\u$&]/g'
$ echo '*.tar.gz | *.tgz' | perl -pe 's/[a-z]/\[$&\u$&\]/g' *.[tT][aA][rR].[gG][zZ] | *.[tT][gG][zZ]
$ v=c $ case $v in "c") echo found;; *) echo not found ;; esac found
$ v=C $ case $v in "c") echo found;; *) echo not found ;; esac not found
$ case $v in "[cC]") echo found |
*) echo not found ;; esac not found |
$ case $v in [cC]) echo found |
*) echo not found ;; esac found |
![]() | |
!! |
![]() | |
No quoting!: |
case "$src" in '/*') # referring to an abs point
will fail to operate while the following is ok:
case "$src" in /*) # referring to an abs point
documented on: 2000.08.15 Tue 16:55:16