Created
September 28, 2023 08:18
-
-
Save opplatek/27e86b743b708ca4e111a3dff2d066a6 to your computer and use it in GitHub Desktop.
Length of string in Bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VAR="abcd" | |
echo ${#VAR} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment