今天尝试写了个简单的菜单shell脚本文件:
clear echo echo -e "\t\t\tSys Admin Menu\n" echo -e "\t1. Display disk space" echo -e "\t2. Display logged on users" echo -e "\t3. Display memory usage" echo -e "\t0. Exit menu\n\n" echo -en "\t\tEnter option: "
用shell执行 sh Xwindows_test1.sh 结果如下:
注意,echo的参数"-e"也一并打印出来了。
但是,如果给脚本加上执行权限,发现执行结果里并没有出现参数"-e":
至于是为什么现在我也还是不清楚~