Re: awk

Pàgina inicial

Reply to this message
Autor: nt.guilde
Data:  
A: guilde
Assumpte: Re: awk
>Comment faire executer proprement la commande:
>awk -f ~/awk/convert.awk "$i" > "$nom"
>
>depuis un shell bash ?
>
>En fait seulement awk -f ~/awk/convert.awk "$i"
>est executer, le reste est ignore.


Cette commande est probablement dans une boucle (ce "$i" doit venir d'un
for i in ...) ; à chaque itération, le fichier "$nom" est crée -- s'il
existe, il est détruit est re-crée. Tu veux probablement

awk -f ~/awk/convert.awk "$i" >> "$nom"
-Nicolas

--
"The position taken by the Scots and the English take regarding their
relations is very certainly none of your affair - you insignificant
little frog-eating chancer." -Charles Walmsley