Skip to content
Skip to search - Accesskey = s
Create a file with 1000 lines:
for i in {1..1000};do echo $i; done > f
export P=0.5 cat f | awk -v p=$P 'BEGIN{srand()} {r = rand(); if (r <= p) print}'
leave a comment
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Get every new post delivered to your Inbox.
leave a comment