Skip to content

Instantly share code, notes, and snippets.

@r-pufky
Created September 1, 2019 02:09
Show Gist options
  • Save r-pufky/5db893cce987f4959713451f3449f165 to your computer and use it in GitHub Desktop.
Save r-pufky/5db893cce987f4959713451f3449f165 to your computer and use it in GitHub Desktop.
Search for all links from a given markdown file recursively in all directories files. Assumes numeric index.
for x in `seq 29 -1 1` do; tail -${x} ${FILE}.md | head -1 | sed 's/\[.*\]:\ //g' | grep -f - -R *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment