Last active
August 23, 2020 15:40
-
-
Save nclv/7fdccf792bc61afa400fc519991b8d71 to your computer and use it in GitHub Desktop.
Récupère les liens des Weeknotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get_links.sh | |
# Renvoie une liste des urls présentes dans les Weeknotes | |
# Usage: | |
# ./get_links.sh links-ressources/ > links.md | |
for file in "$1"/*Weeknotes-*.md | |
do | |
sed -rn 's@^.*\[(.*)\]\((http.[^)]*).*$@[\1](\2)@p' $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment