Skip to content

Commit

Permalink
perl => sed
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Jan 21, 2025
1 parent bb0c621 commit c516269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/sitemap
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function rss() { # xxx <description> using snippet??
echo -n '
<item>
<title>'
( ( yq -r .title .yml 2>/dev/null |grep -Ev '^null$' || echo -n untitled ) | tr -d '\n' | perl -pe 's/&/&amp;/g; s/&amp;amp;/&amp;/g; s/</&lt;/g')
( ( yq -r .title .yml 2>/dev/null |grep -Ev '^null$' || echo -n untitled ) | tr -d '\n' | sed 's/&/&amp;/g; s/&amp;amp;/&amp;/g; s/</&lt;/g')
echo '</title>
<link>'$predir'/</link>
<guid>'$predir'/</guid>
Expand Down

0 comments on commit c516269

Please sign in to comment.