informatique:linux:awk
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édente | ||
| informatique:linux:awk [2007/09/26 15:33] – benoit | informatique:linux:awk [2018/09/26 13:25] (Version actuelle) – [Tutoriels] benoit | ||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| * {{http:// | * {{http:// | ||
| * {{awk-wiki.htm|awk}} | * {{awk-wiki.htm|awk}} | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| Ligne 15: | Ligne 21: | ||
| Affiche les 8 premiers caracteres du premier champs | Affiche les 8 premiers caracteres du premier champs | ||
| awk ' | awk ' | ||
| + | |||
| + | Afficher du champ 2 au champ de fin : | ||
| + | echo " | ||
| + | { | ||
| + | for (i = 2; i <= NF; i = i + 1) | ||
| + | print $i | ||
| + | }' | ||
| + | |||
| + | Afficher du champ 2 au champ 4 : | ||
| + | echo " | ||
| + | { | ||
| + | for (i = 2; i <= 4; i = i + 1) | ||
| + | print $i | ||
| + | }' | ||
| + | |||
| + | |||
| + | Affiche **owncloud-9.1.0.tar.bz2** : | ||
| + | echo " | ||
| + | | ||
| + | Affiche **https:// | ||
| + | echo " | ||
| + | |||
informatique/linux/awk.1190820817.txt.gz · Dernière modification : (modification externe)
