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 -o -E '[a-zA-Z]{3,}' README.md | tr A-Z a-z | sort | uniq -c | sort -n
#/usr/bin/env bash
BASEDIR=$(dirname "$0")
grep -o -E '[a-zA-Z]{3,}' "$BASEDIR/README.md" | tr A-Z a-z | sort | uniq -c | sort -n