You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
string='example'
__="$string"while [ -n"$__" ];do# All but the first character of the string
rest="${__#?}"# Remove $rest, and you're left with the first character
first_character="${__%"$rest"}"echo"$first_character"
__="$rest"done
The text was updated successfully, but these errors were encountered:
Drawn from https://stackoverflow.com/a/51052644/1190568
The text was updated successfully, but these errors were encountered: