Skip to content

Instantly share code, notes, and snippets.

@makerneo-com
Created August 10, 2013 01:35
Show Gist options
  • Select an option

  • Save makerneo-com/6198624 to your computer and use it in GitHub Desktop.

Select an option

Save makerneo-com/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