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

11 lines
172 B
Bash
Raw Normal View History

2024-02-09 23:15:21 +00:00
#!/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