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.
#!/usr/bin/env bash
string="123456789"
string_length=${#string}for((index =0 ; index <$string_length ; index++));doecho$((${string:$index:1}*10))# we can use string as pseudo-array by setting range length to 1done
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The trick is using ranges
Example:
The text was updated successfully, but these errors were encountered: