How to write a case condition in shell? « Oracle Spin – Flimatech Blog

How to write a case condition in shell? « Oracle Spin – Flimatech Blog

瀏覽:1472
日期:2025-04-26
In ksh shell - case statement case variable_name in pattern1) statements1 ;; pattern2) statements2 ;; # default (catch all remaining) *) statements3 ;; esac Example: case $answer in yes|Yes|y) # received yes echo got a positive answer ;; no|n) # received ...看更多