1
Fork 0
blog/ext/add-feed-stylesheet.sh

11 lines
172 B
Bash
Executable file

#!/bin/bash
{
echo '/<?xml'
printf 's/>/>\\\n/\n'
echo i
echo '<?xml-stylesheet href="/feed-style.xsl" type="text/xsl"?>'
echo .
echo w
} | ed "$*" >/dev/null