Outils pour utilisateurs

Outils du site


linux:awk (lu 30515 fois)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
linux:awk [02-05-2017 15:09]
edmc73 créée
linux:awk [05-03-2018 14:55] (Version actuelle)
edmc73
Ligne 23: Ligne 23:
  
 <code> <code>
-%i or d --Decimal%o --Octal+%i or d --Decimal 
 +%o --Octal
 %x --hex %x --hex
 %c --ASCII number character %c --ASCII number character
Ligne 169: Ligne 170:
 </code> </code>
 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 }'
linux/awk.1493730584.txt.gz · Dernière modification: 02-05-2017 15:09 de edmc73