[K12OSN] Help changing file....programming challenge

Petre Scheie petre at maltzen.net
Mon Mar 29 17:04:56 UTC 2004


David-
I modified the passgen script as you requested so that it will create IDs of the 
form

dtrask     <-- for user David Trask
dotrask    <-- for user Donald Trask

It's 153 lines (only three more than the original).  I could post it here (not 
sure if that's good list etiquette or not) or email it to you directly.  Let me 
know how you want it.

Petre

David Trask wrote:
> Hi all,
> 
> I could use a little help.  I've found the passgen file located at 
> http://www.lfsp.org  More specifically the file can be downloaded here 
> http://www.lfsp.org/passgen.gz   It's a simple file that for the most part
> replaces "createusers".  It's really slick as it generates usernames and
> passwords from a text file and finds and alters duplicates.  My problem is
> that it does not go with my naming scheme.  I use the typical firstinitial
> lastname scheme.  I know virtually nothing about scripting and hence I don
> not understand a lot of what is in this script.  I'm trying to change it
> so it will always start with at least the firstintial Lastname and if a
> duplicate is found go to the next letter of the
> firstname......example....if I had David Trask and Donald Trask.....the
> first would be dtrask and the second would be dotrask and so forth.  Can
> anyone help with this challenge?
> 
> David N. Trask
> Technology Teacher/Coordinator
> Vassalboro Community School
> dtrask at vcs.u52.k12.me.us
> (207)923-3100
> 
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 





More information about the K12OSN mailing list