Extraction d'une colonne

mecool23 -  
dubcek Messages postés 19025 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour,
mon probléme consiste à créer 2 fichiers à partir d'un fichier
exemple: fichier <tmp.txt>

19920505_19991015 1672152
19920505_19970103 1813482
19920505_19971219 1794068

le résultat voulu 2 fichiers:
<t1>

19920505_19991015
19920505_19970103
19920505_19971219

<t2>

1672152
1813482
1794068

merci d'avance
A voir également:

1 réponse

dubcek Messages postés 19025 Date d'inscription   Statut Contributeur Dernière intervention   5 640
 
hello
awk '{print $1 >" t1" ; print $2 > "t2"}' < tmp.txt
1