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/
Current thread:
- [Patch] KRAD Ascii Art (A short and sweet patch) Jay Bosamiya (Mar 17)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Fyodor (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Jay Bosamiya (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Daniel Miller (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Jacek Wielemborek (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Daniel Miller (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Jay Bosamiya (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Jacek Wielemborek (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Jay (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Daniel Miller (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Jay Bosamiya (Mar 19)
- Re: [Patch] KRAD Ascii Art (A short and sweet patch) Fyodor (Mar 19)