shell编程笔记五:select
#!/bin/bash
echo "What is your favourite OS?"
select var in "Linux" "Gnu Hurd" "Free BSD" "Windows" "Other"; do
break;
done
echo "You have selected $var"
ps :
var=`date "+%Y%m%d %H%M%S"`
#!/bin/bash
echo "What is your favourite OS?"
select var in "Linux" "Gnu Hurd" "Free BSD" "Windows" "Other"; do
break;
done
echo "You have selected $var"
ps :
var=`date "+%Y%m%d %H%M%S"`