码迷,mamicode.com
首页 >  
搜索关键字:egrep、 grep -a    ( 11311个结果
linux系统信息查看命令
常用命令整理如下:查看主板的序列号: dmidecode | grep -i ’serial number’用硬件检测程序kuduz探测新硬件:service kudzu start ( or restart)查看CPU信息:cat /proc/cpuinfo [dmesg | grep -i 'c...
分类:系统相关   时间:2014-09-28 23:48:46    阅读次数:235
grep的用法
grep参数-c : 显示匹配的行数(就是显示有多少行匹配了);-n :显示匹配内容所在文档的行号;-i :匹配时忽略大小写;-s :错误信息不输出;-v :输出不匹配内容;-o : 输出完全匹配内容;--color:把匹配到的内容有颜色显示\ : 忽略表达式中字符原有含义;^ : 匹配表达式的开始...
分类:其他好文   时间:2014-09-28 21:24:55    阅读次数:134
shell中如何取括号中的字符
1. 使用grep(结果带括号,不知道有没有办法仅把括号中的内容匹配出来)$a='abc[edg]adfirpqu'$echo $a|grep -o '\[.*\]' #中括号的处理需要转义[edg]$b='abc(edg)adfirpqu'$echo $b|grep -o '(.*)'(edg)....
分类:其他好文   时间:2014-09-28 19:40:35    阅读次数:209
shell 自动登录脚本
#!/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
内核makefile
内核版本 : 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
linux grep的选项
grep  -i          关闭大小写敏感性 grep      -v    打印所有不包含。。的行(屏蔽某些条目) grep     -l     打印包含模式的文件名 grep     -c    打印含有模式的行的数目、 grep     -w  打印包含模式的词...
分类:系统相关   时间:2014-09-28 13:30:22    阅读次数:163
adb 卸载APP命令和杀死APP命令
使用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
Linux——oracle数据库实例启动关闭(转)
-->Oracle数据库实例启动关闭过程--================================[root@robinson ~]# su-oracle--查看未启动实例前的进程情况[oracle@robinson ~]$ ps-aef|grep oracleroot333233000 ...
分类:数据库   时间:2014-09-27 21:43:30    阅读次数:543
grep参数
linux命令...
分类:其他好文   时间:2014-09-27 16:19:59    阅读次数:180
grep范例
linux命令...
分类:其他好文   时间:2014-09-27 15:46:19    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!