I am trying to write a bash script that uses the shuf command to randomly select words from a text file. I know -n lets you choose how many is selected but I want it to be random from a range. I also know that there is a -i option but I don't think it's what I'm looking for. So in theory it would be something like shuf -n 1-10 file.txt. Is there a way to do this?
Asked
Active
Viewed 41 times
0
wonton
- 1