Skip to content

Instantly share code, notes, and snippets.

@robertbiswas
Last active September 11, 2025 21:01
Show Gist options
  • Save robertbiswas/7e89cc1920450648fb0c15ea2467cc1e to your computer and use it in GitHub Desktop.
Save robertbiswas/7e89cc1920450648fb0c15ea2467cc1e to your computer and use it in GitHub Desktop.
Command for convert .html files to .php file
For Windows:
Get-ChildItem -Filter *.html | Rename-Item -NewName { $_.Name -replace '\.html$','.php' }
For Mac:
find . -type f -name "*.html" -exec sh -c ' for f; do mv -- "$f" "${f%.html}.php"; done' sh {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment