xeningem: (Default)
Списко хостов обновлявшихся с “зеркала”

cat /var/log/apache2/access.log | grep -E ‘\[.*/Feb/2008.*apt-mirror.*deb’ | awk ‘{ print $1; }’| uniq -c | sort -u -k 2,5

А так - понятней и короче
cat /var/log/apache2/access.log | grep -E ‘13/Feb/2008.*apt-mirror.*deb’ | awk ‘{ print $1; }’ | sort | uniq -c

UPD:
awk --re-interval -- ‘{if($4~/[[:digit:]]{2}\/Feb\/2008/ && $7~/apt-mirror.*deb/){print $1}}’ access.log | sort | uniq -c

Profile

xeningem: (Default)
xeningem

September 2014

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
2829 30    

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 10th, 2025 04:25 am
Powered by Dreamwidth Studios