Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell script iterate over characters in string

foo=string
for (( i=0; i<${#foo}; i++ )); do
  echo "${foo:$i:1}"
done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shell #script #iterate #characters #string
ADD COMMENT
Topic
Name
5+6 =