posted
So I need to write a script via emacs or overwise that will form a unique user id and password for someone.
It will take the first 3 letters of both the 1st and last name and merge them together to form a unique user id and if that combination already exist appends a # to it.
Also it will with the RedHat Linux dictionary give each word a number and randomly generate a number which correponds to each word, from there it will take 2 random words and put them together to form a unique password.
posted
I'm not sure why you need to associate numbers with words from the dictionary instead of just picking two at random straight off, but whatever.
I'm not sure what you see as the issue; the specification seems very straightforward. Which step troubles you?
Posts: 15770 | Registered: Dec 2001
| IP: Logged |
Blayne Bradley
unregistered
posted
figuring out what I'm supposed to do in Linux as in writing the actual code, I'm going brain dead for absolutely no reason.
IP: Logged |
posted
I'm assuming you're supposed to do this in shell scripting?
Well, what shell commands have you learned for manipulating strings? What shell commands are there for the dictionary?
Posts: 15770 | Registered: Dec 2001
| IP: Logged |
Blayne Bradley
unregistered
posted
ummm the whole manual.
currently I'm getting cut to work, how ould I only cut the first 3 letters of oth the the given and surnames?
IP: Logged |