summaryrefslogtreecommitdiff
path: root/bin/pivot
blob: 3c750f2b174cd594b3a977e4796e56356d713a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/awk -f

{
	split ($0, _columns, "\t")
	for (i=0;i<length(_columns);++i) {
		columns[i] = columns[i] "\t" _columns[i]
}	}
END {
	for (i=0;i<length(columns);++i) {
		print substr(columns[i],2)
}	}