Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| linux:awk [02-05-2017 13:16] – edmc73 | linux:awk [05-03-2018 13:55] (Version actuelle) – edmc73 | ||
|---|---|---|---|
| Ligne 170: | Ligne 170: | ||
| </ | </ | ||
| Hope these examples help you to understand about formatting output and padding using printf statement in AWK scripting. Keep visiting www.linuxnix.com for more scripting tutorials and tips. | Hope these examples help you to understand about formatting output and padding using printf statement in AWK scripting. Keep visiting www.linuxnix.com for more scripting tutorials and tips. | ||
| + | |||
| + | |||
| + | Réaliser une addtion sur une colonne avec AWK | ||
| + | ps -u www-data -o user,size | sed 1d | awk '{ SUM += $2 } END { print $1" " SUM }' | ||