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
相關文章
相關標籤/搜索