Created
October 28, 2013 11:12
-
-
Save yandod/7195099 to your computer and use it in GitHub Desktop.
random
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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