credentiality
Thursday, September 25, 2008
Shuffle lines of a file
Where would I be without tab completion? Not only has it destroyed my typing ability, but today it helped me find a command I've wanted for a long time: shuf, which randomly shuffles input lines.
$ shuf /usr/share/dict/words |head -1
banefullest
2 comments:
Braden
said...
Oh, awesome.
9/26/2008 11:37 AM
Braden
said...
I wonder whether shuf -n optimizes for small n.
9/28/2008 10:13 PM
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
2 comments:
Oh, awesome.
I wonder whether shuf -n optimizes for small n.
Post a Comment