Mercurial > ec-dotfiles
comparison bin/statfun @ 124:5bafb912837e
Massive addition of old scripts collection.
author | Edho Prima Arief <edho@myconan.net> |
---|---|
date | Wed, 26 Oct 2011 15:22:00 +0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
123:173833e4ba35 | 124:5bafb912837e |
---|---|
1 #!/bin/sh | |
2 > /tmp/mainlogfun | |
3 while read line; do | |
4 filename=$(printf "%s" "${line}" | grep OK\ DOWNLOAD | grep -v "^$" | sed -e 's/.*OK DOWNLOAD: Client "[^"]*", "\(.*\)"..*/\1/') | |
5 basename -- "${filename}" >> /tmp/mainlogfun | |
6 done < /srv/log/vsftpd/main.log | |
7 grep -v "^$" /tmp/mainlogfun > /root/mainlogfun | |
8 |