Re: Vá: Vá: awk FIELDWIDTHS howto?
On Wed, Jan 09, 2008 at 14:16:38 -0600, Sergio Cuéllar Valdés wrote:
> 2008/1/9, Paul Csanyi:
> > > So, if you only need package name:
> > >
> > > aptitude search ~i | cut -d" " -f3
> >
> > It is cut, not awk.
> > Howewer, it is not god. The output file contains empty lines
> > besides of the package names.
>
> No blank lines : aptitude search ~i | cut -d" " -f3 | sed '/^$/d'
>
> done
>
> yes, no awk
You can tell aptitude that you want a list of only the package names:
aptitude -F%p search ~i
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
Reply to: