Changes between Version 5 and Version 6 of III110813/Lab6
- Timestamp:
- Dec 17, 2011, 5:12:03 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
III110813/Lab6
v5 v6 44 44 * grep 這個命令是擷取文件裡面特定的字元,在Hadoop example中此指令可以擷取文件中有此指定文字的字串,並作計數統計[[BR]]grep is a command to extract specific characters in documents. In hadoop examples, you can use this command to extract strings match the regular expression and count for matched strings. 45 45 {{{ 46 $ hadoop fs -put /etc/hadoop/conf lab5_input47 46 $ hadoop fs -ls lab5_input 48 47 $ hadoop jar hadoop-examples.jar grep lab5_input lab5_out3 'dfs[a-z.]+'