Answers for "awk for loop"

0

awk for loop

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

file.txt :
AAA BBB CCC DDD

output : 
AAA
BBB
CCC
DDD
Posted by: Guest on August-03-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language