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
9/26/2008 11:37 AM
I wonder whether shuf -n optimizes for small n.
9/28/2008 10:13 PM
Post a Comment
Post Comments (Atom)