💡 TIL how to select N random lines from a file on the command line

I’ve just learned how to select N random lines from a file on the command line: shuf -n 10 file.txt This is amazing. I’ve been using Linux for years and I had no idea this was so easy.

May 1, 2023 · 1 min · 38 words · Botond