shuf -n 1 /path/to/your/file.txt
The above will give you a random line from the file using the "shuf" command.
linux, shuf, bash, txt, quot,