[NTLUG:Discuss] Bash script question
Lance Simmons
lance at lsimmons.net
Wed Jan 19 14:09:47 CST 2005
Let's say I have 100 names in a file. I want to randomly select a name
from the file, add it to a list, and repeat that process 40 times. The
result of the process should be a list of 40 names in random order, some
of which may repeat in the list.
What I've been doing up to now is putting the 100 names in random order
and then taking the first 40 lines of the resulting list. But I want to
have the possibility of a name appearing multiple times on the same
list.
Does anyone have any suggestions?
--
Lance Simmons
More information about the Discuss
mailing list