allow to run scripts from any folder

This commit is contained in:
Morgan Wattiez
2018-09-03 09:47:54 +02:00
parent 2303019af2
commit 743a2656af
4 changed files with 12 additions and 4 deletions

View File

@ -1 +1,3 @@
grep http README.md | cut -d '[' -f 2 | cut -d ']' -f 1 | sed 's/\*//g' | grep -v "/" | sort | uniq -c | sort -n
#/usr/bin/env bash
BASEDIR=$(dirname "$0")
grep http "$BASEDIR/README.md" | cut -d '[' -f 2 | cut -d ']' -f 1 | sed 's/\*//g' | grep -v "/" | sort | uniq -c | sort -n