第3章 shell编程.ppt

* select myaction in display_proc show_log list_dir quit do case $myaction in display_proc) ps_fun ;; show_log) log_fun ;; list_dir) ls_fun ;; quit) break ;; *) echo error ;; esac done * 执行: [root@server myshell]# ./e25.sh 1) display_proc 2) show_log 3) list_dir 4) quit #? 3 total 40 drwxr-xr-x 2 root root 4096 Jan 14 19:38 . drwxr-x--- 24 root root 4096 Jan 14 19:38 .. -rwxr-xr-x 1 root root 36 Jan 14 18:02 e19.sh -rwxr-xr-x 1 root root 10

文档评论(0)

1亿VIP精品文档

相关文档