comparison bin/statfun @ 129:f18a27a0e8fc

Merge branch.
author Edho Arief <edho@myconan.net>
date Sat, 29 Oct 2011 11:40:35 +0700
parents 5bafb912837e
children
comparison
equal deleted inserted replaced
121:0c3b473b9af7 129:f18a27a0e8fc
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