From bfd3fd77419316ceba6bec65450a72fa2a807c30 Mon Sep 17 00:00:00 2001 From: spiralofhope <492880+spiralofhope@users.noreply.github.com> Date: Wed, 25 Mar 2020 05:09:27 -0700 Subject: [PATCH] Created SC2000 (markdown) --- SC2000.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 SC2000.md 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 +```