From: Simon Conrad-Armes (Curne) Date: 2004-10-05T02:22:20+09:00 Subject: Using Sqlite for processing I thought this was cool enough to share. At work, once a month, I have to send in a time-sheet in a specific format. Today I was looking for a clever way of converting the raw data exported from my time-logger (JobLog) into that format. After messing around with regular expressions for a while my Ruby program was longer than fifty lines and I thought to myself, "there must be a better way." What I really wanted was the power of Ruby syntax but to run queries against my data like a relational database. So I thought of sqlite-ruby, which I often use for application development. The combination of the tabular data (making a simple split/insert real easy) and the inline queries in the HERE document makes it real easy to create and maintain. This is the code I wrote in 20 minutes: --CODE START-- #!/usr/bin/ruby #JobLog:\t\t\t