wc.exe是一个常见的工具,它能统计文本文件的字符数、单词数和行数。这个项目要求写一个命令行程序,模仿已有的wc.exe的功能,并加以扩充,给出某程序设计源语言文件的字符数、单词数和行数。 给实现一个统计程序,它能正确统计程序文件的字符数、单词数、行数,以及其他扩展功能,并能够快速的处理多个文件。 ...
分类:
其他好文 时间:
2016-10-23 23:12:17
阅读次数:
253
Mapper Reducer Runner 执行: hadoop jar wc.jar com.easytrack.hadoop.mr.WCRunner2 /wordcount.txt /wc/output4 ...
分类:
其他好文 时间:
2016-10-23 17:07:47
阅读次数:
178
几个cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l 每个cpu是几核(假设cpu配置相同) more /proc/cpuinfo |grep "physical id"|grep "0"|wc -l cat /proc/cpuinfo | ...
分类:
系统相关 时间:
2016-10-23 14:44:41
阅读次数:
229
1、查看当天有多少个IP访问:awk‘{print$1}‘log_file|sort|uniq|wc-l2、查看某一个页面被访问的次数:grep"/index.php"log_file|wc-l3、查看每一个IP访问了多少个页面:awk‘{++S[$1]}END{for(ainS)printa,S[a]}‘log_file4、将每个IP访问的页面数进行从小到大排序:awk‘{++S[$1]..
分类:
Web程序 时间:
2016-10-22 01:04:01
阅读次数:
161
import java.io.BUfferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.TOException; import java.util.treeMap; ...
分类:
其他好文 时间:
2016-10-22 00:41:09
阅读次数:
237
#include<iostream> #include<fstream> #include<string> #include<Windows.h> using namespace std; void main() { char word[150][15]; int AllChar = 0, Note ...
分类:
其他好文 时间:
2016-10-22 00:01:57
阅读次数:
332
#include <stdio.h>#include<Windows.h>int isrand(char c, int &randnum)//判断是否换行{if (c == '\n'){randnum++;if (randnum == 1)return 1;elsereturn 0;}else{if ...
分类:
其他好文 时间:
2016-10-20 21:58:49
阅读次数:
184
#include <stdio.h>#include <stdlib.h>#include <string.h> FILE *fp; void main() { int zifu=0,danci=0,kongbai=0,duanluo=0; char ch; char fname[1000]; pr ...
分类:
其他好文 时间:
2016-10-20 21:57:42
阅读次数:
140
WC一个简单的文件检测系统 用c语言实现 不多说 上代码 由于最近事太多 所以项目完成不太理想 还有很多细节的地方要修改~anyway~等周末有空再更新把~ ...
分类:
其他好文 时间:
2016-10-20 11:56:18
阅读次数:
159
datetimectlset-time"2016-11-0112:06:26"date+%F或者date+%Y+%m+%ddate-d"80dayago"+"%F%H:%M:%S">/mnt/datafiledate-d"-80dayago"+"%F%H:%M:%S">>/mnt/datafilecat/mnt/date.txt|wc-c字符cat/mnt/date.txt|wc-m行数cat/mnt/date.txt|wc-l单词数cat/mnt/date.txt|wc-..
分类:
其他好文 时间:
2016-10-20 01:06:47
阅读次数:
159