码迷,mamicode.com
首页 >  
搜索关键字:awk rs ors fs ofs    ( 8409个结果
AWK详细用法
awk非常的优秀,运行效率高,而且代码简单,对格式化的文本处理能力超强。基本上grep和sed能干的活awk全部都能干,而且干得更好。先来一个很爽的例子:文件a,统计文件a的第一列中是浮点数的行的浮点数的平均值。用awk来实现只需要一句话就可以搞定(当然,这个东东用python也可以很轻松的实现,只...
分类:其他好文   时间:2014-07-22 23:15:12    阅读次数:486
Palindrome Partitioning
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:其他好文   时间:2014-07-22 23:08:15    阅读次数:446
Linux重启inotify配置max_user_watches无效被恢复默认值8192的正确修改方法
Linux下Rsync+inotify-tools实现数据实时同步中有一个重要的配置就是设置Inotify的max_user_watches值,如果不设置,当遇到大量文件的时候就会出现出错的情况。一般网上修改方法就是直接修改文件:/proc/sys/fs/inotify/max_user_watch...
分类:系统相关   时间:2014-05-01 21:22:57    阅读次数:715
Palindrome Partitioning II
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:其他好文   时间:2014-05-01 14:47:09    阅读次数:409
遍历文件
void listFiles(){ namespace fs = boost::filesystem; boost::filesystem::path path=boost::filesystem::current_path(); fs::directory_iterator item_beg...
分类:其他好文   时间:2014-05-01 05:23:07    阅读次数:310
c++ ACM常用函数
1 保留小数点后两位#include cout const char * spilt="/";char *p;p=strtok(str,spilt);while(p!=NULL){ //cout #includesort(Rs.begin(),Rs.end());sort(Rs.begin(),Rs...
分类:编程语言   时间:2014-05-01 05:05:45    阅读次数:409
linux下shell脚本执行方法及exec和source命令
exec和source都属于bash内部命令(builtins commands),在bash下输入man exec或man source可以查看所有的内部命令信息。bash shell的命令分为两类:外部命令和内部命令。外部命令是通过系统调用或独立的程序实现的,如sed、awk等等。内部命令是由特...
分类:系统相关   时间:2014-04-30 00:23:34    阅读次数:671
hadoop配置错误
no datanode to stop; no namenode to stop; Bad connection to FS. command aborted.; 网络时断时许错误;
分类:其他好文   时间:2014-04-29 20:35:45    阅读次数:637
[主机/oracle/msyql] 监控脚本
为了方便自己测试和监控,写了三个监控的脚本。 分别监控: 主机【cpu,mem,disk,fs,net】 oracle mysql 脚本如下:hmon.py: monitor Linux os system including cpu,memory,disk,net,file s...
分类:数据库   时间:2014-04-28 01:27:52    阅读次数:765
8409条   上一页 1 ... 839 840 841
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!