Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vertical to horizontal using awk 1

Status
Not open for further replies.

cstorm

MIS
Oct 1, 2001
69
US
Gurus,

Is there a way using awk to format data that looks like this:

76589
server1.zz.acme.com
/usr
tape 198135
==========================
76590
server2.zz.acme.com
/home
tape 198135
tape 198136
==========================

into the following format:
76589 server1.zz.acme.com /usr tape 198135
76590 server2.zz.acme.com /home tape 198135 tape 198136

Thanks for you help!
 
Code:
nawk 'BEGIN{RS="="} $1=$1' file

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Yes, that does the trick. I appreciate the help!
 
glad to be of help!
thanks, guggach.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top