[awk] Imprimer tout le champ avec les espaces
Bonjour,
J'ai un fichier comme ceci:
nom_plan_comptable;categorie;nomsite;dtecreat
PC - FORMATION AVANCES;FORMATION AVANCES;FORM. AVANCES 31 046;31/03/2014
je fais un
Code:
1 2 3 4
| for NomSite=`awk 'BEGIN{FS=";"} { print $3 }' $(pwd)/$Fichier`
do
echo "nom = $NomSite \n"
done |
Voila ce que j'ai comme retour???
Code:
1 2 3 4 5
| nom = nomsite
nom = FORM.
nom = AVANCES
nom = 31
nom = 046 |
J'aimerai avoir:
Code:
1 2
| nom = nomsite
nom = FORM. AVANCES 31 046 |
Comment faire?
Cordialement,
vandman