obsidian-utils/ob-get-links

5 lines
140 B
Plaintext
Raw Normal View History

2021-03-12 18:38:14 +00:00
#!/bin/env fish
2021-03-12 18:35:20 +00:00
function ob-get-links -d "Get Obsidian links in file" -a filename
cat "$filename" | grep -oP '(?<=\- \[\[).*(?=\]\])'
end