Web Archive Links

This commit is contained in:
Brandon Rozek 2024-12-18 21:52:48 -05:00
parent c362493790
commit b560ee2cf2
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
8 changed files with 11 additions and 11 deletions

View file

@ -25,7 +25,7 @@ From my `subscriptions.xml` here's an example entry:
<outline text="Jake Bauer" title="Jake Bauer" type="rss" xmlUrl="https://www.paritybit.ca/feed.xml" htmlUrl="https://www.paritybit.ca/"/>
```
It looks like I need to extract the `title`, `xmlUrl`, and `htmlUrl` attributes in that specific order. I'll use the same technique from a previous post on [capturing quoated strings](/capturing-quoted-string-sed).
It looks like I need to extract the `title`, `xmlUrl`, and `htmlUrl` attributes in that specific order. I'll use the same technique from a previous post on [capturing quoated strings](/blog/capturing-quoted-string-sed).
```bash
grep "xmlUrl" subscriptions.xml |\
@ -56,4 +56,4 @@ HTML_EXPR="<li><a href=\"\3\">\1<\/a> (<a href=\"\2\">feed<\/a>)<\/li>"
REPLACE_EXPR="s/$XML_EXPR/$HTML_EXPR/g"
grep "xmlUrl" "$1" | sed "$REPLACE_EXPR"
```
```