X-Git-Url: https://iankelling.org/git/?p=tee-unique;a=blobdiff_plain;f=teeu;fp=teeu;h=948169dbffdd190d66a2cb502ec0807800ef4012;hp=9a7345bf027b94a069a251296b4bc8d97fb91e4f;hb=ea655d17a5e11dd740574d0a1d5ca2401d5cf063;hpb=8aa7fedebed4c7b707c0fde9f412235f235efce6 diff --git a/teeu b/teeu index 9a7345b..948169d 100755 --- a/teeu +++ b/teeu @@ -8,12 +8,12 @@ teeu() { Tee unique. Append each LINE or if none, each stdin line to FILE if it does not exist in FILE. [-h|--help] display this message" - + if [[ $1 == --help || $1 == -h ]]; then echo "$help" return fi - + if (( ${#@} == 0 )) ; then echo "teeu error: need 1 or more arguments" echo "$help"