Is there any sort of a 'label' on the printout? I guess I'm
hoping that the printout will have something like this:
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.
...other than that, I'm not sure what sort of guidance you're
looking for? It sounds like a very simple script to me.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.