
shell
liudepengzhgd
这个作者很懒,什么都没留下…
展开
-
base-Pipe
grep "hello" file.txt | wc -l原创 2012-01-29 14:09:00 · 250 阅读 · 0 评论 -
base-if
点击打开链接 if condition then code else code fi codition ;is also right原创 2012-01-29 14:56:31 · 441 阅读 · 0 评论 -
Hello world
URL:http://www.linuxdiyf.com/viewarticle.php?id=20338 First line: #!/bin/sh make ./ avaliable: chmod +x pre.sh comments: # #!/bin/sh a="Hello world!" #Variable echo $a #Print $a echo "$a my n原创 2012-01-29 11:55:23 · 255 阅读 · 0 评论 -
base-Redirect
》: vocer 》》: additional原创 2012-01-29 14:10:28 · 253 阅读 · 0 评论 -
base-command params
call command: ./isnump_n n get parameters count: $# get n(first true parameter): $1原创 2012-01-29 15:01:13 · 294 阅读 · 0 评论 -
base-exit
exit n: 0:success n is optional then : $?=n if there is no n ,$? will remain the previous value. Parent process use $?.原创 2012-01-29 15:06:47 · 347 阅读 · 0 评论 -
bae-test
wiki Syntax: test expression or [ expression ] (space is essential) example: if [ $# -eq 0 ] of if test $1 -gt 0原创 2012-01-29 15:16:57 · 277 阅读 · 0 评论