Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

awk split each character

echo "here is a string" | awk '
{ 
  split($0, chars, "")
  for (i=1; i <= length($0); i++) {
    printf("%s
", chars[i])
  }
}'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #awk #split #character
ADD COMMENT
Topic
Name
6+1 =