码迷,mamicode.com
首页 > 系统相关 > 详细

dialog-menu_shell脚本

时间:2016-08-14 14:50:26      阅读:420      评论:0      收藏:0      [点我收藏+]

标签:shell

#!/bin/bash
#
while true
do
    dialog --title "modify" --nocancel --menu "choose one" 20 40 8 1 "create user" 2 "create didrectory" 3 "create file" 4 "modify directory and fiel" 5 "modify file perm" 6 "del directory or file" 7 "exit"  2>menu
    num=`cat menu`
    case $num in
        1)
        ;;
        2)
        ;;
        3)
        ;;
        4)
        ;;
        5)
        ;;
        6)
        ;;
        7)
        exit 10
        echo
        ;;
        *)
        exit 255
    esac
done


本文出自 “天晴了要下雨” 博客,请务必保留此出处http://8776055.blog.51cto.com/8766055/1837731

dialog-menu_shell脚本

标签:shell

原文地址:http://8776055.blog.51cto.com/8766055/1837731

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!