diff options
Diffstat (limited to 'wip/backlink.sh')
-rw-r--r-- | wip/backlink.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/wip/backlink.sh b/wip/backlink.sh new file mode 100644 index 0000000..dfbfe4b --- /dev/null +++ b/wip/backlink.sh | |||
@@ -0,0 +1,22 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Variables | ||
4 | OPTIND=1 | ||
5 | header="" | ||
6 | blacklist="" | ||
7 | |||
8 | while getopts "h:b:" opt; do | ||
9 | case "$opt" in | ||
10 | h) | ||
11 | header=$OPTARG | ||
12 | ;; | ||
13 | b) | ||
14 | blacklist=$OPTARG | ||
15 | ;; | ||
16 | esac | ||
17 | done | ||
18 | |||
19 | shift $((OPTIND - 1)) | ||
20 | |||
21 | echo "header = $header" | ||
22 | echo "blacklist = $blacklist" | ||