One-liner shell script for data mining from log files

In our radio station we use Icecast as a stream server. Like any other good linux software it generates log files that – after hitting predefined size – are compressed and a new log is started. This is a nice feature as it save space on you hard drive.

If you’re not familiar with linux shell you might think it will be hard to get some data out of all these log files. Maybe it’s not a simple drag’n’drop operation but once you understand how it works everything will look like basic shell scripting. Continue reading