Skip to content

Instantly share code, notes, and snippets.

@hajgato
Created September 4, 2014 15:18
Show Gist options
  • Save hajgato/4fbe255e802cb1077e6e to your computer and use it in GitHub Desktop.
Save hajgato/4fbe255e802cb1077e6e to your computer and use it in GitHub Desktop.
mv $1 ${1}.org
sed -e "s+www.cpan.org/modules/by-module/\([A-Za-z]*\)/\([A-Z]\)\([A-Z]\)\([A-Z]*\)+cpan.metacpan.org/authors/id/\2/\2\3/\2\3\4+" -e 's+search.cpan.org/CPAN/authors/id+cpan.metacpan.org/authors/id+' -e 's+www.cpan.org/CPAN/authors/id+cpan.metacpan.org/authors/id+' < ${1}.org > $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment