Extract data from log file for last 24 hours – CentOS
I want to display logs for last 24 hours I trid this but this is not best and dynamic way. utmpdump /var/log/wtmp* | awk '/2022-09-22/, /2022-09-23/' Any other way to display when you run script it should take last 24…