Pull random line from a file

Kevan Shea biffcool at zombieworld.com
Thu Sep 5 17:19:56 PDT 2002


On Fri, 06 Sep 2002 01:32:40 +0200, Björn Lindberg <d95-bli.no.spam at nada.kth.se> wrote:
> 	line=$(sed -n ${random}p $file)
> 

Perfect thanks.

-- 
Kevan Shea
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-chat' in the subject header of the message



More information about the lfs-chat mailing list