📜  awk for 循环 - Shell-Bash 代码示例

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

代码示例1
cat file.txt | awk '{ for(i=1; i<=8 ; i++) print $i}'

file.txt :
AAA BBB CCC DDD

output : 
AAA
BBB
CCC
DDD