Skip to content

Instantly share code, notes, and snippets.

@h2ero
Created August 10, 2013 01:35
Show Gist options
  • Save h2ero/6198624 to your computer and use it in GitHub Desktop.
Save h2ero/6198624 to your computer and use it in GitHub Desktop.
#! /bin/sh
find ./ -iname "*html" | xargs -i sed -i '{
s/\(<li>\)\(.*\): \(<a.*>\)\(.*\)\(<\/a>\)/\1\4\3\2\5/
}' {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment