Remove leading characters in file names
RemoveLeadingCharacters.m
Renames all files in a folder to remove one or more unwanted leading characters
Example:
03-song.mp3 is renamed to song.mp3 while anothersong.mp3 remains anothersong.mp3
MoveLeadingStrings.m
Renames all files in a folder to move a leading string to the back.
Example:
artist-song.mp3 is renamed to -song-artist.mp3
This could easily be rewritten to search for files recursively using Kelly Kearney's subdir.m.
Cite As
Sebastian Endrikat (2025). Remove leading characters in file names (https://www.mathworks.com/matlabcentral/fileexchange/52926-remove-leading-characters-in-file-names), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |