Skip to content

Instantly share code, notes, and snippets.

@kroq-gar78
Last active December 17, 2015 12:19
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 kroq-gar78/5608532 to your computer and use it in GitHub Desktop.
Save kroq-gar78/5608532 to your computer and use it in GitHub Desktop.
Duplicate references finder for Wikis from an input file
#!/bin/bash
cat $1 | sed -r "s/^ +↑ //g;s/[0-9]+\.[0-9]+\ //g;s/\ +$//g" | perl -ne 'print if $SEEN{$_}++'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment