On Wed, Apr 11, 2001 at 10:07:28AM -0300, Filipe Brandenburger wrote: > This probably was requested before, but I'd > like to see the shortest cmdline to generate > a password of 8 random alphanumeric characters. > > The one I've got is 60 chars: > > echo|perl -pe "@a=(A..Z,a..z,0..9);eval's##\$a[rand@a]#;'x8" FYI, that doesn't work in tcsh, although it works in bash. This is 50 characters: perl -le'print map+(A..Z,a..z,0..9)[rand 62],0..7' Ronald ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe