obsidian-utils/ob-get-links

5 lines
140 B
Fish

#!/bin/env fish
function ob-get-links -d "Get Obsidian links in file" -a filename
cat "$filename" | grep -oP '(?<=\- \[\[).*(?=\]\])'
end