- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Random alphanumeric?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2002 07:38 AM
тАО10-12-2002 07:38 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2002 08:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2002 09:10 PM
тАО10-12-2002 09:10 PM
Re: Random alphanumeric?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2002 04:56 AM
тАО10-13-2002 04:56 AM
Re: Random alphanumeric?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2002 04:59 AM
тАО10-13-2002 04:59 AM
Re: Random alphanumeric?
Sure, and I'll include upper/lower case:
echo `expr $RANDOM % 62` `expr $RANDOM % 62` | awk '{alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"; printf("%s%s\n", substr(alphabet,$1,1), substr(alphabet,$2,1)); }'
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2002 05:12 AM
тАО10-13-2002 05:12 AM
Re: Random alphanumeric?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2002 08:44 AM
тАО10-13-2002 08:44 AM
Re: Random alphanumeric?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2002 09:35 AM
тАО10-13-2002 09:35 AM
Re: Random alphanumeric?
Only able to reply now. This morning I was redirected to the US :(
PC03:/W 501 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'
J
PC03:/W 502 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'
U
PC03:/W 503 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'
X
PC03:/W 504 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'
U
PC03:/W 505 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'
9
PC03:/W 506 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'
6
PC03:/W 507 $ perl -le 'print +("A".."Z",0..9,"a".."z")[int rand 62]'
D
PC03:/W 508 $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2002 11:59 AM
тАО10-13-2002 11:59 AM
Re: Random alphanumeric?
I agree that I'd personally do this in perl and not a shell. perl rules and shells smell!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2002 04:00 PM
тАО10-13-2002 04:00 PM