SED help needed.
I am trying to develop a sed script to extract a package description based
on the virtual package name but cannot get it to work:
I have the following sed script (running on /var/lib/dpkg/status):
/^Package: /,/^Description: /{
h
/^Provides:.* elf-x11r6/{
g;p
}
}
But the g;p does not print the hold pattern space instead it prints the
line that matches the Provides: . How can I print the
complete package description?
On Thu, 14 Nov 1996, Joey Hess wrote:
joey >> How do I find that information? Scanning /var/lib/dpkg/status?
joey >
joey >I guess so. The info does seem to be there.
--- +++ --- +++ --- +++ --- +++ --- +++ --- +++ --- +++ ---
PGP Public Key = FB 9B 31 21 04 1E 3A 33 C7 62 2F C0 CD 81 CA B5
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: