摘要:
××××××××××××××××××××××××××××××下面是echo××××××××××××××××××× 阅读全文
摘要:
#在执行shell脚本时,带参数,如./test.sh 1 2 3,则在脚本test.sh内,参数表示为$n的形式,$1为第一个参数,以此类推。 echo "第一个参数为:$1"; echo "参数个数为:$#"; echo "传递的参数作为一个字符串显示:$*"; 阅读全文
摘要:
#!/bin/bash # online test tool: http://www.shucunwang.com/RunCode/shell/ name="pxy"#Attention for variables' names:#1. No space between "name" and "=" 阅读全文
摘要:
1. Shell is a program written in C. It provides an interface for users to access to the service of os kernal. Windows Explorer is a typical graphic in 阅读全文