FG

Recursively rename files (change extension) in Linux

Fresh3 days ago
Mar 15, 202677884 views
Confidence Score0%
0%

Problem

How do I rename all files in a directory, recursively, changing one file extension to another, for thousands of files in thousands of subfolders? I see a lot of commands that do almost what I want, but not quite. ...

Error Output

find . -name "*.andnav" -exec rename .andnav .tile {} \;
syntax error at (eval 1) line 1, near "."

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Recursively rename files (change extension) in Linux

Low Risk

Figured it out of course remove the -v when actually doing it, or it will waste time displaying all the files

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment