mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 22:41:13 +00:00
Web Archive Links
This commit is contained in:
parent
c362493790
commit
b560ee2cf2
8 changed files with 11 additions and 11 deletions
|
@ -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"
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue