#!/bin/rc text = `{cat} link = `{echo $text | sed 's/ /_/g'} if(! test -f $link) { echo '# '^$"text > $link^'.md' } echo '['^$"text^']'^'('^$link^'.md)'