Just discovered $RANDOM in bash.
I usually just did something like “grep –text -Eo ‘[0-9]{2,3}’ /dev/urandom” which is fine for most cases.
Bash: Random in bash
- No comments yet.
- No trackbacks yet.
Just discovered $RANDOM in bash.
I usually just did something like “grep –text -Eo ‘[0-9]{2,3}’ /dev/urandom” which is fine for most cases.
This entry was posted on Saturday, May 31st, 2008 and is filed under Happy Hacking. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^
Recent Comments