Re: Re: get software list of one software repository
> > cat
> > /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binar
> > y-amd64_Packages
> >| grep "Package" | awk -F ": " '{print $2}'
>
> UUOC.
>
> Just grep without a cat. Why so many cats in this group? What's with
> the cats, anyway?
UUOG.
Just awk without a grep, e.g.
awk -F ": " '/Package/{print $2}' /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages
There's no need for a separate grep to match patterns, when awk has
perfectly good pattern matching itself. :-)
--
Cheers,
Clive
Reply to: