Skip to content

Instantly share code, notes, and snippets.

@chip
Created February 2, 2014 01:57
Show Gist options
  • Select an option

  • Save chip/8761937 to your computer and use it in GitHub Desktop.

Select an option

Save chip/8761937 to your computer and use it in GitHub Desktop.
#!/bin/bash
shopt -s globstar
for file in *.htmln; do
mv "$file" "${file%.htmln}.html"
echo "$file ${file%.htmln}.html"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment