Skip to content

Micro-KB

Extracting links from markdown files

June 24, 2025June 23, 2025 by Andy Ferguson

rg --no-filename -o '\[[^]]+\]\([^)]+\)' 2025_journal_* >> 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.

Categories Debian, Linux, Ubuntu
Installing Ubuntu in OEM mode
Running the latest MacOS on unsupported Macs
© 2025 Micro-KB • Built with GeneratePress