Skip to content

Instantly share code, notes, and snippets.

@opplatek
Created September 28, 2023 08:18
Show Gist options
  • Save opplatek/27e86b743b708ca4e111a3dff2d066a6 to your computer and use it in GitHub Desktop.
Save opplatek/27e86b743b708ca4e111a3dff2d066a6 to your computer and use it in GitHub Desktop.
Length of string in Bash
#!/bin/bash
VAR="abcd"
echo ${#VAR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment