I know it’s not good engineering practice, but I do love code golfing and writing one-liners in Ruby. This turns a tab-delimited flat file into an imperfectly compliant CSV file:
File.open($*[0]) { |f| puts f.readline.strip.split("\t").inject([]) { |newfields, field| newfields << "\"#{field}\"" }.join(',') until f.eof? }
It works well as long as there are no commas in your fields.
This is one of the reasons I keep reading Merlin Mann:
Except inasmuch as it can help move aside barriers to finishing the projects that you claim matter to you, “productivity” is often a sprawling ghetto of well-marketed nonsense for people who really just need a ritalin and a hug.
No, it’s not an application feature – it’s new content. I’ve posted my first guitar gear review! And I’ve already got a second item lined up.
Of course, in my rare spare minute, I’m still working on added features for GuitarCardio.com – I think mode-based drills will be next.