diff --git a/SC2000.md b/SC2000.md new file mode 100644 index 0000000..b596904 --- /dev/null +++ b/SC2000.md @@ -0,0 +1,11 @@ +# See if you can use ${#variable} instead + +## example code + +``` bash +#!/usr/bin/env bash + +if [ "$( echo "$1" | wc -c )" -gt 1 ]; then + echo "greater than 1" +fi +```