26 Unix tools. One binary. Zero dependencies. · the missing coreutils for AI pipelines · vrk mcp - expose all 26 tools to any AI agent · brew install vrk - ready in 5 seconds · 26 Unix tools. One binary. Zero dependencies. · the missing coreutils for AI pipelines · vrk mcp - expose all 26 tools to any AI agent · brew install vrk - ready in 5 seconds

vrk links

About

Extracts every link from markdown, HTML, or plain text in one pass. Each link comes out as a JSONL record with the link text, URL, and source line number. Handles inline markdown links, reference-style links, HTML anchors, and bare URLs.

The problem

You need to extract all links from a markdown file. grep finds bare URLs but misses markdown links. A Python script with regex handles inline links but misses reference-style links. You end up with partial results and no line numbers.

Before and after

Before

grep -oE 'https?://[^ ]+' README.md
# misses [text](url) markdown links
# misses [text][ref] reference links
# no line numbers, no link text

After

cat README.md | vrk links

Example

cat README.md | vrk links

Exit codes

CodeMeaning
0Success, including empty input and documents with no links
1I/O error reading stdin
2Interactive TTY with no piped input, unknown flag

Flags

FlagShortTypeDescription
--bare-bboolOutput URLs only, one per line
--json-jboolAppend metadata trailer after all records
--quiet-qboolSuppress stderr output