Y
Hacker News
new
|
ask
|
show
|
jobs
by
loumf
5412 days ago
The p prints the randomly chosen line -- wc -l is the number of lines in the file, (random % lines-in-file) picks a random one, 'sed -n 30p' prints the 30th line.