Skip to content

Instantly share code, notes, and snippets.

@minademian
Last active July 7, 2017 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minademian/24e4be52e7261356565d13e14a568fb7 to your computer and use it in GitHub Desktop.
Save minademian/24e4be52e7261356565d13e14a568fb7 to your computer and use it in GitHub Desktop.
^(.*)(\r?\n\1)+$ # search for duplicate lines in file
\: # look for character
\n # put in newline character
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment