I am the root user and I am setting up a menu for another user to use. This other user will only get this menu.
There are two options that are interlinked: the first option is to search users. The code I got is:
last | awk '{print $1,$4,$5,$6,$7} '
I have checked this code and it works, it shows me the usernames and the day they last logged on.
For the second option: I want to be able to set a date, and them delete users who haven't been active since that date, using the output of the above command.
I am using Linux Mint and Vim text editor.
?
)—would greatly help to indicate what you try to ask.