Linux统计文件中单词出现的次数

grep -E "\b[[:alpha:]]+\b"  /etc/fstab  -o | sort | uniq -chtml 或post awk '{for(i=1;i<NF;i++){count[$i]++}}END{for(i in count) {print i,count[i]}}' /etc/fstabspa -E 使用正则进行匹配htm \b : backspace 退格 print
相关文章
相关标签/搜索