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
..

Any advices will be appreciated!

-- 
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to