Hi all,
My boss wants me to find out how often e-m users are accessing their account:confused:. The mail server keeps log of all logins. I want to use grep the 'usernames', but it should come out the moment it first encounters the username in the log. Can I do that? I want to avoid 10+ greps of same users...
Then all the users that didn't login will be added a day, and output to a file. Any suggestions?

I think it's grep -il "username" logfilename
Also Refer to the manual pages of grep
man grep
hope this helps
Thanks Kapil, but it didn't work in Digi Unix 4.0. "grep -i" Ignores the case, and "grep -l" lists the name of file, i.e logfile. 