1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
PATH=
/bin
:
/sbin
:
/usr/bin
:
/usr/sbin
:
/usr/local/bin
:
/usr/local/sbin
:~
/bin
export
PATH
read
-p
"qing shu ru Y/N:"
yn
if
[
"$yn"
==
"Y"
];
then
echo
"okY"
else
if
[
"$yn"
==
"y"
];
then
echo
"oky"
else
if
[
"$yn"
==
"N"
];
then
echo
"NON"
else
if
[
"$yn"
==
"n"
];
then
echo
"NOn"
else
echo
"I don't know what your choice is"
&&
exit
0
exit
0
fi
exit
0
fi
exit
0
fi
exit
0
fi
|
linux shell脚本学习
最新推荐文章于 2023-06-26 10:59:17 发布