linux:scripts_awk:start
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
linux:scripts_awk:start [16/03/2010 16:14] – info sup daniel | linux:scripts_awk:start [09/04/2018 12:18] – [Scripts awk] daniel | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Scripts awk ====== | ====== Scripts awk ====== | ||
- | + | Docs | |
- | Une doc sur awk : http:// | + | |
- | + | * https://www.tutorialspoint.com/awk/index.htm | |
- | Quelques règles et bout de scripts (cf http://cli.asyd.net/home/filtres/awk) | + | * [FR] http:// |
Attention aux locales !!! (merci à Christophe Martin de la liste shell@asyd.net), | Attention aux locales !!! (merci à Christophe Martin de la liste shell@asyd.net), | ||
Ligne 30: | Ligne 30: | ||
===== Syntaxe ===== | ===== Syntaxe ===== | ||
+ | |||
==== Boucle for ==== | ==== Boucle for ==== | ||
<code awk> | <code awk> | ||
Ligne 39: | Ligne 40: | ||
}' | }' | ||
</ | </ | ||
+ | |||
+ | ==== Lister les IP et le nb d' | ||
+ | <code awk> | ||
+ | awk ' | ||
+ | </ | ||
+ | |||
+ | Ou si on veut le reverse | ||
+ | <code awk> | ||
+ | awk ' | ||
+ | </ | ||
+ | |||
===== Exemples ===== | ===== Exemples ===== | ||
linux/scripts_awk/start.txt · Dernière modification : 17/10/2019 11:11 de daniel