resources‎ > ‎

wc

posted Jul 4, 2015, 1:27 AM by Onno Benschop   [ updated Jul 5, 2015, 12:05 AM ]
  • mkdir tmp ; for n in * ; do cat "$n" | tr -sc '[:alnum:]' '\n' | sort | uniq -ic | sort -rn > "./tmp/$n" ; done
  • for n in ./tmp/* ; do cat "$n" | tr -s ' ' , | sed "s/^/$n/" ; done | awk -F, '{print $1,$3,$2}' OFS=, > word_list.csv
  • tr -sc '[:alnum:]' '\n' | sort | uniq -ic | sort -rn | tr -s ' ' , | sed -e "s|^|${url}|"
Comments