Ajout colonne calcuée ds un fichier .txt

Mon but est de cr�er un script ksh ou commande aix permettant ceci.
J'ai un fichier .txt organis� par bloc d'informations, chaque bloc d�bute par 000 et ce comme suit :

000...
001...
003...
004...
000...
001...
003...
004...
.
.
.Mon but est d'ajouter une colonne en fin de chaque ligne afin d'avoir un identifiant unique de chaque bloc, et ce comme suit :
000...1
001...1
003...1
004...1
000...2
001...2
003...2
004...2
.
.
Merci de votre aide :)!

Hello.

Per our forum rules, all posts must be in English.

We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.

Please repost in English.

Thank you for your cooperation.

The UNIX and Linux Forums.

$ awk '{print $0 "..." ++X[$0]}' file1  
000... 1
001... 1
003... 1
004... 1
000... 2
001... 2
003... 2
004... 2

Somehow this thread was not closed accidentally.

-closed-

bakunin