Bonjour,
Dans une fonction appelée par un awk , je voudrais
faire un grep dans un fichier :
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 awk ' /^/ { retour_info=rechercher_INFO( $1 ) ) print retour_info } function rechercher_INFO(NOM) { #cette recherche est ok sous unix mais dans la #fonction cela ne passe pas INFO=$(grep prenom $FIC_2|cut -c10-20) return INFO } ' $FIC_1
Partager