Fork me on GitHub

Profile of eleweek

Shared commands

Shared by eleweek 3 years ago

(On OS X) count how many characters are in the clipboard

 $ pbpaste | wc -c
Shared by eleweek 3 years ago

Count the number of times each line occurs in a file

 $ cat <something> | awk '{a[$0]++} END{for (i in a) print i, a[i]}'
Shared by eleweek 3 years ago

Dump 1 frame using mplayer(i.e. take a screenshot)

 $ mplayer -vo jpeg -frames 1 -ss 40 <file>