problem with awk

Adel ESSAFI adelessafi at gmail.com
Tue Jun 1 16:08:38 UTC 2010


Hello,
I have a "little" proble with awk
 here I have a file which contain data like this


101663.dat
1 122837.920343696
1 121875.899726134
1 8011.13164749145
1 24955.1102952732


when I execute

awk    'BEGIN { }
      echo $2
      END   { print "Fin" }
' testclean


I got this outpout

1 122837.920343696
1 121875.899726134
1 8011.13164749145
1 24955.1102952732

while I am expecting to get

122837.920343696
121875.899726134
8011.13164749145
24955.1102952732

without 1 at the beginning of the line. Can you help please.

Regards



-- 
PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
fax: +216 71 391 166
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20100601/c2ce7568/attachment.html 


More information about the users mailing list