level 2
waiwaixiong_
楼主
#!/bin/bash
#Learn how to use select
PS3='Please select:'
select f in *do
echo "The number you enter is:$REPLY"
echo "The file you choose is:$f"
echo "The contend of the file is:"
cat $f
while (($REPLY=0))
do
exit 1
done
done
我想输入0后,能够退出,这样写为什么不行呀??
2010年10月12日 06点10分
1
#Learn how to use select
PS3='Please select:'
select f in *do
echo "The number you enter is:$REPLY"
echo "The file you choose is:$f"
echo "The contend of the file is:"
cat $f
while (($REPLY=0))
do
exit 1
done
done
我想输入0后,能够退出,这样写为什么不行呀??