Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'more command-line quickies' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
more command-line quickies
Authored by: FACEMILK on Sep 29, '04 04:23:44AM
I love that one. Already added to my collection.

Here are some that I created a while back; excerpted from my .bash_profile:

function rand-pass
{
        # this one strips iffy chars from output
        jot -r -c 64 32 128 | rs -g 0 16 | tr -d "\ \`\'\"\~\<\>\[\]\(\)\{\}\.\,\:\;\?\@\\\/\|"
}


function rand-file
{
        # this one strips all but alphanumeric chars from output
        jot -r -c 64 32 128 | tr -cd "[:alnum:]" | rs 0 16
}

All of these are far from easy to remember though.

[ Reply to This | # ]