cat << EOF cpu)print cpu information mem)print memory information disk)print disk information quit)quit Enter your option EOF read -p "Enter your option: " option #hahha地方option=`echo $option | tr ‘A-Z‘ ‘a-z‘` “”asdfdasfdasf while [[ "$option" != "quit" ]]; do if [[ "$option" == "cpu" ]]; then cat /proc/cpuinfo elif [[ "$option" == "mem" ]]; then free -m elif [[ "$option" == "disk" ]]; then df -h else echo "Wrong option..." fi read -p "Enter your option again: " option option=`echo $option | tr ‘A-Z‘ ‘a-z‘` done
好卡都是分开;
dasfasdhfklsadf阿什顿飞撒地方
的撒发的说法