常用命令整理如下:查看主板的序列号: 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参数-c : 显示匹配的行数(就是显示有多少行匹配了);-n :显示匹配内容所在文档的行号;-i :匹配时忽略大小写;-s :错误信息不输出;-v :输出不匹配内容;-o : 输出完全匹配内容;--color:把匹配到的内容有颜色显示\ : 忽略表达式中字符原有含义;^ : 匹配表达式的开始...
分类:
其他好文 时间:
2014-09-28 21:24:55
阅读次数:
134
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
#!/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