if you have duplicate lines in a text file, in this format:
line 1
line 1
line 2
line 2
...
...
this regexp code will remove the duplicate lines:
search: (.*)\n\1
replace: \1\n
regular expression syntax for geany
IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.
No comments:
Post a Comment