Is there any sort of a 'label' on the printout? I guess I'm
hoping that the printout will have something like this:

'UserID: xxxxxxxxxx'


Yes, on the second line, middle of the page, the label is INSPECTOR:
The user name varies in length like so:
INSPECTOR: JOE INSPECTOR
INSPECTOR: JOE E. INSPECTOR


Then you can use grep to look for the 'UserID:' string, and
use cut or awk whatever tool is appropriate to extract the
actual userid. This seems like a better idea than running
grep multiple times -- especially if the number of users increases.


Thanks for that suggestion. I don't expect the users to increase over
5.
At least not until I can increase my knowledge of scripting.


...other than that, I'm not sure what sort of guidance you're
looking for? It sounds like a very simple script to me.


Yes, I'm sure that it does sound that way to you!! ;-)


Thanks Scott!

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].