+
Skip to content

mhl/occurs

 
 

Repository files navigation

occurs
======

`occurs` finds the number of occurrences of each symbol (where "symbol" can be defined flexibly enough to be words, identifiers or XML tags), and list them sorted lexically or by frequency, with or without the frequency and total number of distinct symbols.

unique: occurs -n -l "^" -r "$" -s ".*" "$@"
sort lexically: occurs "$@" | sort
sort by frequency: occurs "$@" | sort -n -k 2

About

Count occurrences of each symbol in a file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 33.5%
  • Go 23.8%
  • Lua 16.3%
  • Python 16.3%
  • Ruby 7.6%
  • Shell 2.5%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载