cat file.txt | awk '{ for(i=1; i<=8 ; i++) print $i}' file.txt : AAA BBB CCC DDD output : AAA BBB CCC DDD