I know I am late for this, but I love this short version:
grep -q ^$1 schemas.txt && echo "Schema already exists. Please try again" || echo "$@">> schemas.txt
I know I am late for this, but I love this short version:
grep -q ^$1 schemas.txt && echo "Schema already exists. Please try again" || echo "$@">> schemas.txt