Unix
iteye_18947
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
if...else..
1, if...else.. if[]; then else fi2, if...else if... if[]; then esif[]; then else fi3, if... if[]; then fi原创 2017-03-02 10:35:48 · 125 阅读 · 0 评论 -
Bash - how to use sendmail
touch exeSendMail.kshtouch eg.txt1, eg.txt content: hello world!2, write in exeSendMail.kshSend mail( echo "From: SANT"; echo "To: bonnie.tang@gmail.com"; ...原创 2017-03-02 10:53:02 · 136 阅读 · 0 评论 -
Bash Variable: define and usage: difference between $NAME and ${NAME}
Variable: define and usage: difference between $NAME and ${NAME}1, Define: NAME="Zara Ali"2, Use: Input below in test.ksh NAME="Zara Ali" AGE=13 echo $NAME $ Zara Ali #use ${...原创 2017-03-02 11:01:43 · 168 阅读 · 0 评论 -
Bash Difference between ${} and $()
Difference between ${} and $() 1, $(command) is “command substitution”. it runs the command, captures its output, and inserts that into the command line that contains the $(…); eg: $ ls -ld ...原创 2017-03-02 11:06:35 · 182 阅读 · 0 评论 -
Bash special variable:$#, $$, $@, $*, $0, $?
special variable:$#, $$, $@, $*, $0, $?[b]1, $#[/b][b]The number of arguments supplied to a script.[/b]eg: if [ "$#" -eq 0 ]; then echo "you did not pass any parameter"fiecho "Total...原创 2017-03-02 11:15:13 · 117 阅读 · 0 评论
分享