Skip to content

Instantly share code, notes, and snippets.

@jerome
Created February 4, 2012 21:49
Show Gist options
  • Select an option

  • Save jerome/1740394 to your computer and use it in GitHub Desktop.

Select an option

Save jerome/1740394 to your computer and use it in GitHub Desktop.
extracts url and remove duplicate lines
perl -0ne 'print "$1\n" while (/a href=\"(.*?)\">.*?<\/a>/igs)' file.html | perl -ne '$H{$_}++ or print'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment