1/Name:.*/ { 2 package = substr($0, 7) 3 next 4} 5/postinstall.*scriptlet .*/ { 6 next 7} 8{ 9 print $0 >> ENVIRON["D"] "/etc/rpm-postinsts/" package ".sh" 10} 11 12