读取Sep-2013下面的所有log文件,并扔进管道
cat /home/hadoop/Sep-2013/*/* | python ipmappper.py | sort | python ipreducer.py
vim 1.txt dong xi cheng xi dong cheng wo ai beijing tian an men qiche dong dong dong cat 1.txt | grep "dong" | sort dong dong dong dong xi cheng xi dong cheng
vim sort.txt
0
2
1
9
5
4
8
7
5
sort sort.txt | uniq -c
1 0
1 1
1 2
1 4
2 5
1 7
1 8
1 9
或者
cat 1.txt | python grep.py | java sort.jar