📜  如何将数据表转换为列表整体 问问题 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:34.153000             🧑  作者: Mango

代码示例1
# This below line help
# IFS=$'\r\n' GLOBIGNORE='*'

data="1 apple 50 Mary
2 banana 40 Lily
3 orange 34 Jack"

IFS=$'\r\n' GLOBIGNORE='*'
for i in ${data}
do
  echo $i
  echo "test" 
done

# Resulted Output
1 apple 50 Mary
test
2 banana 40 Lily
test
3 orange 34 Jack
test