awk:delete_consecutive_duplicate_lines
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
awk:delete_consecutive_duplicate_lines [2020/09/23 16:02] – 192.168.1.1 | awk:delete_consecutive_duplicate_lines [2021/01/06 16:22] (current) – peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | Example | ||
+ | |||
+ | <file bash contents.txt> | ||
+ | aaaaa | ||
+ | bbbbb | ||
+ | ccccc | ||
+ | ccccc | ||
+ | ddddd | ||
+ | ddddd | ||
+ | eeeee | ||
+ | bbbbb | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | aaaaa | ||
+ | bbbbb | ||
+ | ccccc | ||
+ | ddddd | ||
+ | ddddd | ||
+ | eeeee | ||
+ | bbbbb | ||
+ | </ |
awk/delete_consecutive_duplicate_lines.1600876961.txt.gz · Last modified: 2020/09/23 16:02 by 192.168.1.1