
shell
sxlwzl
这个作者很懒,什么都没留下…
展开
-
shell学习1:入门
1,echoecho hello worldecho -n helloecho wor原创 2014-05-19 20:16:31 · 489 阅读 · 0 评论 -
Bash与Csh的区别
zz:http://bdxnote.blog.163.com/blog/static/8444235200710991136102/Bash与Csh中的条件表达式 2007-11-09 09:11:36| 分类: Shell|举报|字号 订阅=========================BASH中的条件表达式===========转载 2014-07-16 22:43:46 · 6133 阅读 · 0 评论 -
shell学习4:管道的神奇魔力
1,|ls -l | grep "^d"原创 2014-05-19 20:44:21 · 542 阅读 · 0 评论 -
shell学习3:文本处理工具
1,sortsort -n input.log -output.log原创 2014-05-19 20:41:06 · 498 阅读 · 0 评论 -
shell学习5:变量,判断,重复动作
1,unset取消变量的赋值2,sleep原创 2014-05-19 20:53:03 · 510 阅读 · 0 评论 -
shell学习9:文件处理
1,lsls -lSh2,touch原创 2014-05-19 21:12:28 · 499 阅读 · 0 评论 -
shell学习8:awk的惊人表现
ls -l | grep "^d" | awk '{print $1}'打印该目录下d原创 2014-05-19 21:07:50 · 519 阅读 · 0 评论 -
shell学习7:产生脚本
利用各种参数以及if,case,while编写shell脚本原创 2014-05-19 21:05:17 · 492 阅读 · 0 评论 -
shell的if/else框架
#!/bin/bash#to run a bash, ./filename.shecho "start bash"log_file="hello.log"if [ -f "$log_file" ] ;then echo "file exists"else echo "file not exists"fiecho "end bash"exit原创 2014-05-19 15:14:17 · 780 阅读 · 0 评论 -
shell学习2:查找和替换
1,grep常用的参数为wrin基本命令:grep -wrin "Starting" ./*zgrep原创 2014-05-19 20:34:07 · 666 阅读 · 0 评论 -
bash 语法的特殊性
1,条件语句的判断原创 2014-07-17 23:32:03 · 646 阅读 · 0 评论