SyntaxFix
Write A Post
Hire A Developer
Questions
Use shuf with the -n option as shown below, to get N random lines:
shuf
-n
N
shuf -n N input > output