Skip to content

Commit

Permalink
ran on local drive
Browse files Browse the repository at this point in the history
  • Loading branch information
sfregosi committed Feb 23, 2023
1 parent 93f4d8d commit 231c6c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dataProcessing/fileRenamers/rename_files_glider_MHI.m
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
% rename files

% original files
% path_in = 'D:\sg680_MHI_Apr22\wav';
path_in = 'T:\Glider_MHI_Spring_2022\sg680_MHI_Apr2022\recordings\wav\';
path_in = 'D:\sg639_MHI_Apr2022\recordings\wav';
% path_in = 'T:\Glider_MHI_Spring_2022\sg680_MHI_Apr2022\recordings\wav\';
wavFiles = dir(fullfile(path_in, '*.wav') );
oldNames = {wavFiles.name};
% newNames = regexprep(oldNames, '_HI', '_MHI');
newNames = regexprep(oldNames, 'Apr22', 'Apr2022');
newNames = regexprep(oldNames, '_HI', '_MHI');
newNames = regexprep(newNames, 'Apr22', 'Apr2022');

for f = 1 : length(oldNames)
movefile(fullfile(path_in, oldNames{f}), fullfile(path_in, newNames{f}));
Expand Down

0 comments on commit 231c6c7

Please sign in to comment.