cs_lang:awk
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
cs_lang:awk [2012/04/30 09:29] – cedric | cs_lang:awk [2012/04/30 09:30] (current) – cedric | ||
---|---|---|---|
Line 63: | Line 63: | ||
printf(" | printf(" | ||
} | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== uniq ===== | ||
+ | <code awk> | ||
+ | BEGIN { option = "" | ||
+ | { if ($0 == precedent) | ||
+ | else { printf(" | ||
+ | i=0 } | ||
+ | precedent = $0 } | ||
</ | </ |
cs_lang/awk.txt · Last modified: 2012/04/30 09:30 by cedric