Skip to content

Instantly share code, notes, and snippets.

@yandod
Created October 28, 2013 11:12
Show Gist options
  • Save yandod/7195099 to your computer and use it in GitHub Desktop.
Save yandod/7195099 to your computer and use it in GitHub Desktop.
random
ls | grep key | php -r '$list=array(); while($l = trim(fgets(STDIN))){$list[]=$l;} echo "\n"; echo $list[array_rand($list)] ."\n";'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment