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:

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
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!

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2021 by 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.