[lug] Bash-ing an FTP log summary

Bill Thoen bthoen at gisnet.com
Tue Jun 27 19:30:39 MDT 2006


Hi folks,

I'm trying to write a bash script to summarize total daily FTP transfers
(in terms of data transfered in and out) from my vsftp logs. So far, I've got a file
that produces output like this each day:

o 123456
o 32456
i 1235
o 123456
... etc. 

The 'o' is out and 'i' is in. The number is the amount transfered. What I
want to do is summarize the transfers each day and add them to a running
total in a file. Can I do this in a bash script? How?

- Bill Thoen




More information about the LUG mailing list