This repository has been archived on 2021-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
plan9-scripts/mdlink

8 lines
153 B
Bash
Executable File

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