User Tools

Site Tools


awk:delete_consecutive_duplicate_lines

Differences

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

Link to this comparison view

Next revision
Previous revision
awk:delete_consecutive_duplicate_lines [2020/09/23 16:00] – created 192.168.1.1awk:delete_consecutive_duplicate_lines [2021/01/06 16:22] (current) peter
Line 1: Line 1:
-====== AWK - Delete Consecutive duplicate lines ======+====== AWK - Delete consecutive duplicate lines ======
  
 <code bash> <code bash>
Line 5: Line 5:
 </code> </code>
  
 +----
 +
 +Example
 +
 +<file bash contents.txt>
 +aaaaa
 +  bbbbb
 +ccccc
 +ccccc
 +  ddddd
 +ddddd
 +    eeeee
 +  bbbbb
 +</file>
 +
 +returns:
 +
 +<code bash>
 +aaaaa
 +  bbbbb
 +ccccc
 +  ddddd
 +ddddd
 +    eeeee
 +  bbbbb
 +</code>
awk/delete_consecutive_duplicate_lines.1600876837.txt.gz · Last modified: 2020/09/23 16:00 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki