Skip to content

Instantly share code, notes, and snippets.

@jvanja
Created November 2, 2015 16:16
Show Gist options
  • Save jvanja/11df44c6edd89a19e669 to your computer and use it in GitHub Desktop.
Save jvanja/11df44c6edd89a19e669 to your computer and use it in GitHub Desktop.
Find all files of type of HTML and change their names to index.html
find . -name "*.html" -exec bash -c 'cp "{}" "$(dirname "{}")"/index.html' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment