AIXSolarisAdmin
MIS
Code:
host1
cups-libs-1.4.2-67.el6.x86_64
cups-1.4.2-67.el6.x86_64
host2
cups-libs-1.4.2-67.el6.x86_64
cups-1.4.2-67.el6.x86_64
host3
cups-1.4.2-67.el6.x86_64
host4
cups-libs-1.4.2-67.el6.x86_64
host5
cups-libs-1.4.2-67.el6.x86_64
host6
cups-libs-1.4.2-67.el6.x86_64
cups-1.4.2-67.el6.x86_64
Code:
host1 cups-libs-1.4.2-67.el6.x86_64 cups-1.4.2-67.el6.x86_64
host2 cups-libs-1.4.2-67.el6.x86_64 cups-1.4.2-67.el6.x86_64
host3 cups-1.4.2-67.el6.x86_64
host4 cups-libs-1.4.2-67.el6.x86_64
host5 cups-libs-1.4.2-67.el6.x86_64
host6 cups-libs-1.4.2-67.el6.x86_64 cups-1.4.2-67.el6.x86_64
Code:
awk '{
if(/^host/)
{host=$0}
else if (/^cups/)
{pkg[$0]++}
{for (i in pkg) print host" "i}
}' $1