FileSeries - Rename / renumber files, recursive directories

버전 1.2.0.0 (24.3 KB) 작성자: Frederic Moisy
Renaming and renumbering for series of files ; generalize the use of wildcards (*) for CD, LS ...
다운로드 수: 7.5K
업데이트 날짜: 2010/6/2

라이선스 보기

편집자 메모: This file was selected as MATLAB Central Pick of the Week

This directory contains a set of functions for recursive operations on files and folders (wildcards on subdirectories allowed), including automatic renaming and renumbering of series of files and folders. This may be useful for handling a large number of files:

cdw - Change directory (like CD), allowing wildcard (*).
lsw - List directory (like LS), allowing wildcard (*).
rdir - Recursive list directory.
rdelete - Delete files recursively.
rrmdir - Delete directories recursively.
renamefile - Rename a series of files.
renumberfile - Re-number the indices of a series of files
getfilenum - Get the index of a series of files.

Examples:

CDW mydir*/dir*12 works as CD, but wildcards (*) are allowed

F = RDIR('set*/DSC*.*') returns all the files matching DSC*.* in all
the directories matching set*.

RENAMEFILE('DSC*.JPG','DSC','myphoto') renames the files 'DSC00001.JPG',
'DSC00002.JPG',... as 'myphoto00001.JPG','myphoto00002.JPG',...

RENUMBERFILE('DSC*.JPG','DSC') renumbers the *.JPG files as
'DSC00001.JPG'...'DSC00100.JPG'.

N = GETFILENUM('*.JPG','DSC') returns the indices of JPG-files.

See the help for each function for more examples.

인용 양식

Frederic Moisy (2024). FileSeries - Rename / renumber files, recursive directories (https://www.mathworks.com/matlabcentral/fileexchange/12180-fileseries-rename-renumber-files-recursive-directories), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 File Name Construction에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

New version 1.50. Bugs fixed in rdir and renamefile

1.1.0.0

Version 1.40: New LSW, CDW. Some functions run much faster (thanks M. Tabarroki!)

1.0.0.0

bugs fixed