<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2010-04-27:505737</id>
  <title>The Mandelbear's Musings</title>
  <subtitle>mdlbear</subtitle>
  <author>
    <name>mdlbear</name>
  </author>
  <link rel="alternate" type="text/html" href="https://mdlbear.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://mdlbear.dreamwidth.org/data/atom"/>
  <updated>2018-12-31T08:04:02Z</updated>
  <dw:journal username="mdlbear" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2010-04-27:505737:1652838</id>
    <link rel="alternate" type="text/html" href="https://mdlbear.dreamwidth.org/1652838.html"/>
    <link rel="self" type="text/xml" href="https://mdlbear.dreamwidth.org/data/atom/?itemid=1652838"/>
    <title>Let's try this again...</title>
    <published>2018-12-31T08:04:02Z</published>
    <updated>2018-12-31T08:04:02Z</updated>
    <category term="meta"/>
    <category term="bash"/>
    <category term="blogging"/>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">&lt;p&gt; It looks like the basic idea works, but I was using slashes as the
    delimiter for the sed command that puts the post url into the archived
    post.  Since the url contains slashes, that failed.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=mdlbear&amp;ditemid=1652838" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2010-04-27:505737:1652557</id>
    <link rel="alternate" type="text/html" href="https://mdlbear.dreamwidth.org/1652557.html"/>
    <link rel="self" type="text/xml" href="https://mdlbear.dreamwidth.org/data/atom/?itemid=1652557"/>
    <title>Meta:  how to get the url of your last post</title>
    <published>2018-12-31T07:51:40Z</published>
    <updated>2018-12-31T07:51:40Z</updated>
    <category term="bash"/>
    <category term="meta"/>
    <category term="blogging"/>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">&lt;p&gt; This is a test:  (The results will be posted in a comment)

&lt;pre&gt;### this prints out the URL of the last post you made today:
    wget -q -O - https://mdlbear.dreamwidth.org/$(date +%Y/%m/%d/)  \
       | grep 'class="entry-title"' | tail -1                    \
       | sed -E 's/^&amp;lt;[^&amp;gt;]*&amp;gt;&amp;lt;[^&amp;gt;]*href="([^"]*)".*$/\1/'
&lt;/pre&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=mdlbear&amp;ditemid=1652557" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
