Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: [Patch] KRAD Ascii Art (A short and sweet patch)
From: Daniel Miller <bonsaiviking () gmail com>
Date: Wed, 19 Mar 2014 10:10:09 -0500

On 03/19/2014 09:51 AM, Jacek Wielemborek wrote:
I'd personally break it down into a few instructions.
Jacek,

Not sure if this is what you meant, but this turns out to be better (avoids the whole sort issue and has fewer processes):

cat $(ls | awk 'BEGIN{srand();}{lines[++d]=$0}END{print lines[int(1+rand()*d)]}')

Dan
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]