I have seen someone use this command -- and it works where it pulls back all the IPS in a list/group:
cat access.* | awk '{ print $1 }' | sort | uniq -c | sort -n
However, I want to choose the past 2 days; how can I do that?
I have seen someone use this command -- and it works where it pulls back all the IPS in a list/group:
cat access.* | awk '{ print $1 }' | sort | uniq -c | sort -n
However, I want to choose the past 2 days; how can I do that?
tail -100 access.* | awk '{ print $1 }' | sort | uniq -c | sort -n
or
awk '/28\/Mar\/2016/ { print $1 }' access.* | sort | uniq -c | sort -n