grep参数-c : 显示匹配的行数(就是显示有多少行匹配了);-n :显示匹配内容所在文档的行号;-i :匹配时忽略大小写;-s :错误信息不输出;-v :输出不匹配内容;-o : 输出完全匹配内容;--color:把匹配到的内容有颜色显示\ : 忽略表达式中字符原有含义;^ : 匹配表达式的开始...
分类:
其他好文 时间:
2014-09-28 21:24:55
阅读次数:
134
#!/bin/bash
IP=`awk‘{print$1}‘/home/bash/mima.txt`
foriin$IP
do
{port=`grep$i/home/bash/mima.txt|awk‘{print$2}‘`
pawd=`grep$i/home/bash/mima.txt|awk‘{print$3}‘`
expect<<EOF
spawnssh-p$portroot@$i;
expect{
"(yes/no)?"{send"yes\r"}
"password:"{send"$pa..
分类:
其他好文 时间:
2014-09-28 18:43:36
阅读次数:
133
内核版本 : linux-2.6.22.6内核编译的简单说明(不完全表达)1、/work/jz2440/kernel/linux-2.6.22.6/arch/arm/configs# ls |grep s3c*s3c2410_defconfig #cd /work/jz2440/kernel/li....
分类:
其他好文 时间:
2014-09-28 17:32:54
阅读次数:
187
grep -i 关闭大小写敏感性
grep -v 打印所有不包含。。的行(屏蔽某些条目)
grep -l 打印包含模式的文件名
grep -c 打印含有模式的行的数目、
grep -w 打印包含模式的词...
分类:
系统相关 时间:
2014-09-28 13:30:22
阅读次数:
163
使用adb 卸载APP命令在cmd命令行下,直接 输入 adb uninstall 包名比如 adb uninstall com.ghstudio.BootStartDemo杀死APP命令先用 # adb shell # ps|grep 包名获得 APP的进程ID.然后 kill APP进程ID操作...
分类:
移动开发 时间:
2014-09-28 12:05:11
阅读次数:
280
-->Oracle数据库实例启动关闭过程--================================[root@robinson ~]# su-oracle--查看未启动实例前的进程情况[oracle@robinson ~]$ ps-aef|grep oracleroot333233000 ...
分类:
数据库 时间:
2014-09-27 21:43:30
阅读次数:
543
首先安装 mcryptsudo apt-get install mycrypt php5-mcrypt然后sudo php5enmod mcrypt就可以打开模块,然后输入以下命令均可见到mcrypt了:php -i | grep mcryptsudo php -m。。。。。。。。。。。。。。。。。...
分类:
Web程序 时间:
2014-09-27 14:49:29
阅读次数:
224
一般在windows上文本编辑器notepad++,UE这些都有这些功能,Linux下就换了一种方式,用grep来完成文件中信息查找的方式。grep -R --include="*.cpp" [pattern] [dir]另外find命令可以根据文件名在特定目录下递归查找文件find [dir] -...
分类:
其他好文 时间:
2014-09-26 18:51:08
阅读次数:
188