2000
Best practice
Minor
See if you can use ${#variable} instead.
Bash, zsh, ksh: regardless what Shell you use, Codiga got you covered. With hundreds of rules, the Codiga Static Engine checks for any issue in your shell script and surfaces issues in your Shell codebase.
See if you can use ${#variable} instead.
expr is antiquated. Consider rewriting this using $((..))
Use $(...) notation instead of legacy backticked `...`.
egrep is non-standard and deprecated. Use grep -E instead.