š» Software
remove numbers from filenames in Mac OS X
Fresh5 days ago
Mar 15, 20267164 viewsConfidence Score0%
0%
Problem
I have a directory full of files with names in this format (with numbers as the start of each filename): I would like to rename them as follows (i.e. removing the numbers): Can anyone suggest a way to do this (presumably from the terminal)?
Error Output
102_file.txt 104_list.txt 242_another_file.txt
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix ā Awaiting Verification
Fix for: remove numbers from filenames in Mac OS X
Low Risk
I assume you have the bash shell on your mac. You can do it using the bash parameter expansion: This will remove all digits up to the first . Note: this will overwrite files which end up having the same name. Example: both and will be renamed to . iā¦
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix