|
|
|
|
Oui
awk '{...'"$var1"'...}'
ou utiliser le tableau ENVIRON ENVIRON An array containing the values of the current environment. The array is indexed by the environment variables, each element being the value of that variable (e.g., ENVIRON["HOME"] might be /home/arnold). ... |
Salut,
[tmpfs]$ cat plop
Bonjour,
Est-il possible d'utiliser des variabes bash dans les fonctions awk?
Merci
Configuration: Linux
Firefox 2.0.0.14
[tmpfs]$ var="Linux"
[tmpfs]$ awk '/'"$var"'/ { print $0 }' plop
Configuration: Linux;-))
JP - Éleveur de pingouins - Faites un geste pour l'environnement, fermez vos fenêtres et adoptez un manchot. |