{"id":1978,"date":"2025-06-23T07:30:10","date_gmt":"2025-06-23T07:30:10","guid":{"rendered":"https:\/\/andy.teknostatik.co.uk\/kb\/?p=1978"},"modified":"2025-06-24T16:03:33","modified_gmt":"2025-06-24T16:03:33","slug":"extracting-links-from-markdown-files","status":"publish","type":"post","link":"https:\/\/andy.teknostatik.co.uk\/kb\/2025\/06\/23\/extracting-links-from-markdown-files\/","title":{"rendered":"Extracting links from markdown files"},"content":{"rendered":"\n<p><code>rg --no-filename -o '\\[[^]]+\\]\\([^)]+\\)' 2025_journal_* &gt;&gt; links.md<\/code><\/p>\n\n\n\n<p>This will extract all the links in my daily log and add them to a new file. Useful when compiling lists of things (like records I like).<\/p>\n\n\n\n<p>It requires the<code> ripgrep <\/code>package to be installed.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rg &#8211;no-filename -o &#8216;\\[[^]]+\\]\\([^)]+\\)&#8217; 2025_journal_* &gt;&gt; links.md This will extract all the links in my daily log and add them to a new file. Useful when compiling lists of things (like records I like). It requires the ripgrep package to be installed.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":"","_share_on_mastodon":"0"},"categories":[3,5,8],"tags":[],"class_list":["post-1978","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-ubuntu"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/comments?post=1978"}],"version-history":[{"count":2,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1978\/revisions"}],"predecessor-version":[{"id":1983,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1978\/revisions\/1983"}],"wp:attachment":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/media?parent=1978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/categories?post=1978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/tags?post=1978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}