[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Vá: Vá: awk FIELDWIDTHS howto?



2008/1/9, Paul Csanyi <csanyipal@gmail.com>:
> > 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


-- 
"Meine Hoffnung soll mich leiten
Durch die Tage ohne Dich
Und die Liebe soll mich tragen
Wenn der Schmerz die Hoffnung bricht"


Reply to: