Select random lines from a file May 15, 2022 by IT Nursery In a Bash script, I want to pick out N random lines from input file and output to another file. How can this be done? 6 Answers 6