Count occurrences of each symbol in a file
M4 C Go Lua Python Makefile Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
m4
.gitignore
AUTHORS
INSTALL
Makefile.am
NEWS
README
configure.ac
opts.ggo
syms.c
syms.go
syms.icn
syms.lua
syms.py
syms.rb
syms.sh

README

syms
====

`syms’ lists symbols in its input (where "symbol" can be defined flexibly enough to be words, identifiers or XML tags).

unique symbols, sorted lexically: syms "$@" | sort | uniq
number of unique symbols: syms "$@" | sort | uniq | wc -l
unique symbols, sorted by frequency: syms "$@" | sort | uniq -c | sort -n -k 2
unique lines (like uniq, but not just adjacent lines): syms -s "^(.*)$" "$@"