about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-05-30 14:19:43 -0500
committerCase Duckworth2022-05-30 14:19:43 -0500
commita3e99a8fa5bb4937a4944623a40a0de49cefe7b3 (patch)
tree49109b6ac663d005077fa33e96c4613d2fbbbad2
parentNew post, asset moving, dir-locals, etc. (diff)
downloadhat-trick-a3e99a8fa5bb4937a4944623a40a0de49cefe7b3.tar.gz
hat-trick-a3e99a8fa5bb4937a4944623a40a0de49cefe7b3.zip
Use cat instead of print
-rw-r--r--tmpl.feed.xml20
1 files changed, 11 insertions, 9 deletions
diff --git a/tmpl.feed.xml b/tmpl.feed.xml index fc82a67..6c9026f 100644 --- a/tmpl.feed.xml +++ b/tmpl.feed.xml
@@ -14,14 +14,16 @@
14 entry_title="$(echo "$line" | sed 's#.*<a href=".*">\(.*\)</a>.*#\1#')" 14 entry_title="$(echo "$line" | sed 's#.*<a href=".*">\(.*\)</a>.*#\1#')"
15 entry_html="$(echo "$line" | sed 's#.*<a href="\(.*\)">.*#\1#')" 15 entry_html="$(echo "$line" | sed 's#.*<a href="\(.*\)">.*#\1#')"
16 entry_url="https://acdw.casa/$entry_html" 16 entry_url="https://acdw.casa/$entry_html"
17 print "<entry>" 17 cat <<END_OF_ENTRY
18 print "<id>$entry_url</id>"
19 print "<link rel=\"alternate\" type=\"text/html\" href=\"$entry_url\" />"
20 print "<title>$entry_title</title>"
21 print "<updated>$entry_date</updated>"
22 print "<author><name>Case Duckworth</name></author>"
23 print "<content type=\"html\"><![CDATA[$(sed 1d "${entry_html%ml}.bod.txt")]]></content>"
24 print "</entry>"
25 done)
26 18
19 <entry>
20 <id>$entry_url</id>
21 <link rel="alternate" type="text/html" href="$entry_url" />
22 <title>$entry_title</title>
23 <updated>$entry_date</updated>
24 <author><name>Case Duckworth</name></author>
25 <content type="html"><![CDATA[$(sed 1d "${entry_html%ml}.bod.txt")]]></content>
26 </entry>
27END_OF_ENTRY
28done)
27</feed> 29</feed>