cut-d, -f2 111.txt
Now on your task
1. no need to read once per minute bash supports reader mode
tail-f /var/log/syslog - this is ( gives flow)
clear all that remains Is to crop it as you need
tail-f /var/log/syslog | grep -o "username.as"
here you'll get online all the rows about this, every man to his own
then they can count
tail-f /var/log/syslog | grep -o "username.as" | wc-l > ivanov.sa
but here it is better to take the whole file
cat /var/log/syslog | grep -o "username.as" | wc-l > ivanov.sa
well, if you need to make a list of users and their number of mentions here on another.
But not in TK ;)