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

Re: select N random lines in a file



Lance Hoffmeyer <lance@augustmail.com> writes:

> 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?

bogosort -n file | head -N

.Henrik

-- 
Henrik Christian Grove
grove@sslug.dk
Systems administrator



Reply to: