Last active
September 11, 2025 21:01
-
-
Save robertbiswas/7e89cc1920450648fb0c15ea2467cc1e to your computer and use it in GitHub Desktop.
Command for convert .html files to .php file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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