Last active
August 29, 2015 14:01
-
-
Save jppommet/816a94f91b4c48ddb2f5 to your computer and use it in GitHub Desktop.
Pick a random line from a file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat $FILE | sort --random-sort | head -n 1 | |
| # alternatively | |
| rl -c 1 -n src/main/resources/and-feb10.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment