Skip to content

Instantly share code, notes, and snippets.

@appwiz
Last active May 6, 2023 20:28
Show Gist options
  • Save appwiz/c0363aa3b05119002c27ae3ca6d698ad to your computer and use it in GitHub Desktop.
Save appwiz/c0363aa3b05119002c27ae3ca6d698ad to your computer and use it in GitHub Desktop.
Use GitHub issues as the link repository

Find all links from existing HTML files

ls *.html | xargs grep "Please follow" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_-]*'

How to create a GH issue

gh issue create -b "" --label "link" --assignee "@me" --title ""

Putting it all together

for i in `ls *.html | xargs grep "Please follow" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_-]*' `; do echo $i; sleep 10; gh issue create -b "" --label "link" --assignee "@me" --title "$i"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment