随笔分类 -  语言shell

摘要:1.赋值时,等号两边不能是空白符。 2.变量前加$,表示提取变量的值。 3.以字母或下划线开头,只能是字母、数字、下划线。 4.区分大小写。 $ name=’zhangsan’ $ echo $name zhangsan $ age=3 $ echo $age 3 阅读全文
posted @ 2013-11-02 15:08 helloweworld 阅读(139) 评论(0) 推荐(0)
摘要:1、find / -name "*" | xargs grep "route"在根文件夹下查找含有关键字route的文件,列出文件名和route所在行。2、find / -name "*.txt" | xargs grep "route"在根文件夹下查找后缀名为txt且含有关键字route的文件,列... 阅读全文
posted @ 2012-09-23 15:43 helloweworld 阅读(1815) 评论(0) 推荐(0)