Code covered by the BSD License
-
cdw(f)
CDW Change current working directory with wildcards
-
f=expandstr(str)
EXPANDSTR Expand indexed strings.
-
fo=rdir(name,opt)
RDIR Recursive list directory.
-
num=getfilenum(f,pat,opt)
GETFILENUM Get the index of a series of files.
-
rdelete(f,varargin)
RDELETE Delete a series of files.
-
renamefile(f,pat1,pat2,opt)
RENAMEFILE Rename a series of files.
-
renumberfile(f,pat,newnum,nz,...
RENUMBERFILE Re-number the indices of a series of files.
-
varargout=lsw(f)
LSW List directory with wildcards
-
varargout=rrmdir(varargin)
RRMDIR Delete a series of directories.
-
Contents.m
-
Contents
-
cdw
-
expandstr
-
getfilenum
-
lsw
-
rdelete
-
rdir
-
renamefile
-
renumberfile
-
rrmdir
-
View all files
from
FileSeries - Rename / renumber files, recursive directories
by Frederic Moisy
Renaming and renumbering for series of files ; generalize the use of wildcards (*) for CD, LS ...
|
| cdw(f)
|
function cdw(f)
%CDW Change current working directory with wildcards
% CDW works as Matlab's built-in CD, but allows for wildcards (*). If
% many directory names match, the first one is used.
%
% Examples:
% CDW mydir*2*
%
% See also CD, LSW, RDIR.
% F. Moisy, moisy_at_fast.u-psud.fr
% Revision: 1.00, Date: 2008/07/28
% History:
% 2008/07/28: v1.00, first version.
error(nargchk(1,1,nargin));
f=rdir(f,'dironly');
if ~isempty(f)
cd(f{1})
end
|
|
Contact us at files@mathworks.com