📜  awk 拆分每个字符 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:35.405000             🧑  作者: Mango

代码示例1
echo "here is a string" | awk '
{ 
  split($0, chars, "")
  for (i=1; i <= length($0); i++) {
    printf("%s\n", chars[i])
  }
}'