awk命令的使用 Ubuntu14.04 目的:想用awk来统计某个文本中单词出现的次数,并以一定的格式输出结构通常,awk逐行处理文本。awk每接收文件的一行,然后执行相应的命令来处理。 用legal文件来做示例12345678$ cat /etc/legalThe programs included with the Ubuntu system are free software;the exact distr 2015-12-16 Linux_note #Linux #Tools
grep 搜索字符串 grep 搜索,怎样排除某些目录?使用 --exclude-dir 选项。 语法:1--exclude-dir=DIR Exclude directories matching the pattern DIR from recursive searches. 单个目录示例-R是表示启用正则1grep -E "http" ./ -R --exclude-dir=.git 多 2015-11-29 Linux_note #Linux #Tools