/ Published in: Awk
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/usr/bin/awk NR == 1 { for ( i = 1 ; i <= NF ; i++ ){ line[i] = $i; } next; } { for ( i = 1 ; i <= NF ; i++ ){ line[i] = line[i] OFS $i; } } END { for ( i = 1 ; i <= length(line) ; i++){ print line [i] } }