mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC2000 (markdown)
11
SC2000.md
Normal file
11
SC2000.md
Normal file
@@ -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
|
||||||
|
```
|
Reference in New Issue
Block a user