Rename a group of files with one command
Fresh3 days ago
Mar 15, 202630034 viewsConfidence Score0%
0%
Problem
If I have a group of files with a .htm extention, how can I rename them all to .html? does not work.
Error Output
mv *.htm *.html
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Rename a group of files with one command
Low Risk
Or, you could use pure bash... (except for mv, that is..) and avoid the nasty basename stuff. ;) Bash has an extensive set of variable expansion options. The one used here, '%', removes the smallest matching suffix from the value of the variable. Th…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix