Gawk - to extract values from multi lined file -I

view story

http://www.unix.com – Hi, Request your help in getting help with the below text formatting using awk. I am still learning awk and your help here is appreciated. Thanks in advance. Desireoutput ---------------- Code: Virtual Pool Destination Profile Profile Profile Profile 1. virtual-1 pool-1 profile-a-1 profile-b-1 profile-c-1 profile-d-1 2. virtual-2 pool-2 profile-a-2 profile-b-2 3. virtual-3 <NA> profile-a-3 profile-b-3 4. virtual-4 pool-4 profile-a-4 profile-b-4 profile-c-4 5. virtual-5 pool-5 (HowTos)