awk Looping trough fields


Example

awk '{ for(f=1; f<=NF; f++) { print $f; } }' file