FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-09-2008, 06:21 PM
"Sergio Cuéllar Valdés"
 
Default awk FIELDWIDTHS howto?

2008/1/9, Paul Csanyi <csanyipal@gmail.com>:
> Hello!
>
> I try to use awk to print second field from a text file
> but awk prints a part of 1. field as a 2. field. Why?
>
> aptitude search ~i | awk '{ NF = "2" } { FIELDWIDTHS = " 4 32 " }
> {print $2}' > foltelepitett_debian_csomagok
>
> less foltelepitett_debian_csomagok
>
> ..
> bsdmainutils
> bsdutils
> busybox
> A
> ca-certificates
> checksecurity

Hello,

something like this: aptitude search ~i | cut -d" " -f2

does this help you ?

Best regards,
Sergio Cuellar

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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 04:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org