#!/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
时间: 2024-11-05 19:07:19