[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 02:35:14PM -0500, Lance Hoffmeyer wrote:
> Hello all,
> 
> I would like to write a script that will select N number of
> random lines in a file.  Any suggestions on how to do this?
> 
> 
> Lance
Hi Lance,
any language preference? C,perl, bash? there are 1x 10^6 ways.
Is this for a one-time-use or part of a bigger project?
-Kev
-- 

        (__)
        (oo)
  /------\/
 / |    ||
*  /\---/\
   ~~   ~~
...."Have you mooed today?"...

Attachment: signature.asc
Description: Digital signature


Reply to: