The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH-KEYGEN doesn't work gjp UNIX for Dummies Questions & Answers 3 01-07-2009 03:04 PM
ssh-keygen configuration problem brandedfundoo UNIX for Advanced & Expert Users 14 12-05-2008 10:13 PM
how to use ssh-keygen to login to a UNIX box codeman007 Shell Programming and Scripting 1 10-17-2008 02:34 AM
SSH-Keygen script jagnikam Shell Programming and Scripting 4 10-09-2008 07:34 PM
ssh-keygen questions (not working) tekline UNIX for Advanced & Expert Users 10 09-01-2008 10:17 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-12-2009
glev2005 glev2005 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 74
BASH or applescript keygen

Please help me to make this script to create a key based on these parameters:

the output of $USER is smithm for mike smith
the output of id smithm is uid=1042(smithm) gid=20(staff) groups=20(staff), 1025(group1), 1057(group2), 1028(group5), 1038(group3), 1037(group4)

I need a script that puts last letter, first letter of username (ms)
then puts uid (1042)
then appends 09 to the end of each user

so for mike smith is would be: ms104209

I need a script that would do this for any user who runs it.

please help, thanks!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0