On Feb 21, 2006, at 3:38 PM, Charilaos Skiadas wrote:

You could do this with ruby for instance:

#!/usr/bin/env ruby

print "[${1:description}][${2:id}]$0" + STDIN.read + "\n[${2:id}]: ${3:href}"


oops, spoke too soon. You'll want to escape all $ in STDIN.read, so:
print "[${1:description}][${2:id}]$0" + STDIN.read.gsub('$','\\$') + "\n[${2:id}]: ${3:href}"

Haris