码迷,mamicode.com
首页 >  
搜索关键字:egrep、 grep -a    ( 11311个结果
CentOS 6.4下编译安装MySQL 5.6.14
概述:CentOS 6.4下通过yum安装的MySQL是5.1版的,比较老,所以就想通过源代码安装高版本的5.6.14。正文:一:卸载旧版本使用下面的命令检查是否安装有MySQL Serverrpm -qa | grep mysql有的话通过下面的命令来卸载掉rpm -e mysql //普通删除模...
分类:数据库   时间:2014-08-23 15:15:00    阅读次数:270
Modify PDF operators.
1 Depart Process: 2 1. Grep xref and trailer binary position in file. 3 2. Dump xref table and trailer part. 4 3. Calculate every object binary o...
分类:其他好文   时间:2014-08-22 19:36:19    阅读次数:176
Redis文件连接数不够导致listen sock总是可读CPU跑满
前几天碰到碰到一个线上redisCPU跑满的情况,基本无法处理正常请求了,刚开始以为是其他地方的问题,后来grep"Maxopenfiles"/proc/`pidofredis-server`/-r排查原来是启动redis的时候。ulimit-n只有1024,从而无法接受新连接。晚高峰时间段突发的大量请求导致redis连接数超过102..
分类:其他好文   时间:2014-08-22 18:00:59    阅读次数:263
grep,awk和sed
commons: all of them could use regular-expression to match the result. differences: 1)grep: search for files with patterns. 2)awk: any...
分类:其他好文   时间:2014-08-22 15:51:09    阅读次数:224
shell脚本中重启tomcat进程
shell脚本#! /bin/bashSHUTDOWN="/root/tomcat/bin/shutdown.sh"STARTTOMCAT="/root/tomcat/bin/startup.sh"echo "关闭tomcat"$SHUTDOWNps -ef |grep tomcat |grep /...
分类:其他好文   时间:2014-08-22 10:30:45    阅读次数:160
grep Demo
Demonstration for grep
分类:其他好文   时间:2014-08-22 00:02:25    阅读次数:229
linux shell assemble PDF文件
daniel@daniel-mint ~/latex/linux/itext/daniel $ cat asm.sh header_start=0header_len=15xref_start=$(strings -a -t d $1 | grep -e "\bxref\b" | awk '{pri...
分类:系统相关   时间:2014-08-21 19:00:54    阅读次数:227
linux在二进制文件中查找pattern的offset
参考:http://stackoverflow.com/questions/14141008/grep-offset-of-ascii-string-from-binary-filestrings -a -t x filename | grep foobar
分类:系统相关   时间:2014-08-21 18:49:54    阅读次数:212
crontab 导入任务列表
crontab导入任务列表crontabfilename#导入任务列表,导入会把之前的清除[root@host]#crontab-l|grep-v"#">file.txt [root@host]#echo"*****echook">>file.txt [root@host]#crontabfile.txt [root@host]#catfile.txt MAILTO="" */30****sh/usr/shell/updatetime.sh ..
分类:其他好文   时间:2014-08-21 15:19:16    阅读次数:222
awk使用方法
简介 awk是一个强大的文本分析工具,相对于grep的查找,sed的编辑,awk在其对数据分析并生成报告时,显得尤为强大。简单来说awk就是把文件逐行的读入,以空格为默认分隔符将每行切片,切开的部分再进行各种分析处理。 awk有3个不同版本: awk、nawk和gawk,未作特别说明,一般指gaw....
分类:其他好文   时间:2014-08-21 10:58:53    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!