CPU : 1 awk 'NR % 3' # Affiche toutes les lignes sauf les modulos de 3 2 awk 'NR > 3' # Affiche toutes les lignes supérieur à 3 3 awk 'NR >= 3' # Affiche toutes les lignes supérieur ou égale à 3 4 awk '$2 == "a"' # Affiche toutes les lignes ayant aa comme deuxième champ 5 awk 'NF >= 3' # Affiche toutes les lignes ayant ayant au moins 3 champs 6 awk '/foo/ && /bar/' # Affiche les lignes qui matchent foo et bar 7 awk '/foo/ && !/bar/' # Affiche les lignes qui matchent foo et mais pas bar 8 awk '/foo/ || /bar/' # Affiche les lignes qui matchent foo ou bar 9 awk '/foo/,/bar/' # ?? 10 awk 'NF' # Affiche les lignes non vides 11 awk 'NF--' # ?? 12 awk '$0 = NR" "$0' # Affiche les lignes suffixés du numéro 13 awk '!a[$0]++' # Affiche le fichier sans les doublons