[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: select N random lines in a file



On Sun, Aug 22, 2004 at 04:11:39PM -0400, Travis Crump wrote:
 
> That only prints one line whenever the second range number is less than 
> the first[which happens roughly half the time][ignoring the fact that 
> ./foo should also be $FILE].

Yeah, it's not perfect, but it was just off the top of my head. You can do all
of this in perl, awk, etc.  If you can suggest something, do so.

-- Thomas Adam
--
"Frankly, Mr. Shankly, since you ask. You are a flatulent pain in 
the arse." -- Morrissey.



Reply to: