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 @@
cat README.md | cut -d'(' -f2 | cut -d')' -f1 | egrep "^http*" | sort -u | wc -l #/usr/bin/env bash
BASEDIR=$(dirname "$0")
cat "$BASEDIR/README.md" | cut -d'(' -f2 | cut -d')' -f1 | egrep "^http*" | sort -u | wc -l

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

View File

@ -1 +1,3 @@
cat README.md | cut -d'(' -f2 | cut -d')' -f1 | egrep "^http*" | awk -F/ '{print $3}' | sort | uniq -c | sort -n #/usr/bin/env bash
BASEDIR=$(dirname "$0")
cat "$BASEDIR/README.md" | cut -d'(' -f2 | cut -d')' -f1 | egrep "^http*" | awk -F/ '{print $3}' | sort | uniq -c | sort -n

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