1 DATE=$(date +%s)2 count=$(grep -c "" short.txt)3 while true4 do5 DATE_New=$(date +%s)6 if (( $(date +%s) == DATE+1))#have passed 1 second7 then89 DA...
分类:
系统相关 时间:
2014-12-11 17:03:57
阅读次数:
291
root:/ # logcat | grep -i nfc I/BackupManagerService( 2320): Scheduling backup for new app com.android.nfcD/BackupManagerService( 2320): Now staging b...
分类:
其他好文 时间:
2014-12-11 12:00:32
阅读次数:
683
awk是一个强大的文本分析工具,相对于grep的查找,sed的编辑,awk在其对数据分析并生成报告时,显得尤为强大awk工作流程是这样的:读入有'\n'换行符分割的一条记录,然后将记录按指定的域分隔符划分域,填充域,$0则表示所有域,$1表示第一个域,$n表示第n个域。默认域分隔符是"空白键" 或 ...
分类:
其他好文 时间:
2014-12-11 11:46:33
阅读次数:
154
grep -r 'GET /weixin/weixin_izp/index.html' ./chunyun.access.log > ~/access.logcat access.log |awk '{print $1}'|cut -d, -f3|sort|uniq -c > mycount.lo....
分类:
其他好文 时间:
2014-12-11 11:41:25
阅读次数:
197
查看系统是否安装vnc服务,如果有请卸载掉,如下图
rpm -qa|grep"vnc-server"...
分类:
其他好文 时间:
2014-12-11 10:26:02
阅读次数:
213
原文链接 http://blog.csdn.net/yaochunnian/article/details/7261006grep 文件报错 “Binary file ... matches” 原因:文件为binary文件解决:strings vers.log.2010-03-09 | grep ....
分类:
其他好文 时间:
2014-12-10 22:48:31
阅读次数:
178
概述:本来自己写了一篇,但是看到http://www.tuicool.com/articles/NfqeEf这篇更好,于是就算转载过来了吧。下一篇我们会讲到twemproxy的核心,即其转发响应转发请求。作为一个proxy服务,我们应该深入了解它的进程和事件模型。进程模型:通过grep代码,查找fo...
分类:
系统相关 时间:
2014-12-10 19:41:50
阅读次数:
542
Linux 下我们使用vsftp来作为我们的ftp server.
Server OS : Redhat 6.3
1.检查server上是否已经安装了vsftpd
rpm -qa | grep vsftpd
2.假如没有相应的vsftpd rpm包,我们需要下载安装
yum install vsftpd
3.配置vsftpd配置文件。
# ls /e...
分类:
系统相关 时间:
2014-12-10 16:19:41
阅读次数:
249
最近从数据库中导出了230万条文本文件格式的数据记录。开了台freebsd虚拟机。ram256Mb,cpu1core。其实就是测试在相同的硬件环境下,grep,sed,awk(nawk)三个工具的搜索文件的效率。搜索结果:[root@ServerA/var]#timegrep18921373250vo.txt//grep第一次搜索/20101220/10000..
分类:
其他好文 时间:
2014-12-10 14:30:56
阅读次数:
212