User Tools

Site Tools


informatique:linux:awk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
informatique:linux:awk [2018/01/07 00:27] – [Exemples] pteuinformatique:linux:awk [2019/06/06 07:25] – [Exemples] pteu
Line 182: Line 182:
 <code bash> <code bash>
 awk '!x[$0]++' test.tmp awk '!x[$0]++' test.tmp
 +</code>
 +
 +  * quitter la boucle awk après le premier match
 +<code bash>
 +echo -e "toto\ntoto\n" | awk '/toto/ {print; exit}'
 </code> </code>
informatique/linux/awk.txt · Last modified: 2022/04/13 13:03 by pteu