Saturday, May 4, 2024
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 25258  / 1 Year ago, mon, may 29, 2023, 9:06:40

I have a large folder of .m4b audio books which in their current format won't play on my Android phone. However they do work fine if they are renamed to .m4a



Is there a quick method or terminal command that can rename every .m4b file in a folder to .m4a? There is no need for any conversion of the files, simply renaming the file extension works perfectly fine.


More From » command-line

 Answers
5

This will do the job for you.



rename 's/.m4b$/.m4a/' *.m4b



For a test run you can use this command:



rename 's/.m4b$/.m4a/' *.m4b -vn



-v means "verbose" and it will output the names of the files when it renames them.



-n will do a test run where it won't rename any files, But will show you a list of files that would be renamed.


[#38210] Tuesday, May 30, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zombieptu

Total Points: 490
Total Questions: 121
Total Answers: 108

Location: Nepal
Member since Mon, Jan 4, 2021
3 Years ago
zombieptu questions
Sat, Feb 18, 23, 20:00, 1 Year ago
Sun, Feb 27, 22, 02:41, 2 Years ago
Sat, Oct 30, 21, 00:00, 3 Years ago
;