Hi Pluggers

I have a text file that has below data

DATA1
aaa
bbb
ccc

DATA2
ddd
eee
fff

DATA3
ggg
hhh
iii

using a shell script, I want an output something like below

DATA1 DATA2 DATA3
aaa           ddd          ggg
bbb           eee          hhh
ccc           fff             iii


I've been reading a lot on awk and sed but I seems to can't find the ways to
do it. I'm wondering if someone here already did the above trick.



-- 

Keyboard error, press F1 to continue
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to