comparison bin/statfun @ 138:f963d52c031a

Merge.
author Edho Arief <edho@myconan.net>
date Wed, 02 Nov 2011 22:12:16 +0700
parents 5bafb912837e
children
comparison
equal deleted inserted replaced
137:983beb13c736 138:f963d52c031a
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