Hands-on task
How many people logged in
/root/data/access.log is a log of actions on a website. Each line is an action and a user name, for example login anna — anna logged in, logout anna — she logged out, view anna — she looked at something. The same people logged in several times.
How many different people logged in at least once (the login action)? Write a single number to /root/answer.txt. Try to get it in one line — with a pipeline of several commands.
- pipe |
- pipeline
- sort -u
- wc -l
- grep