/[MITgcm]/MITgcm_contrib/gael/profilesMatlabProcessing/profiles_devel/profiles_subgrid_stats_rename.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/profilesMatlabProcessing/profiles_devel/profiles_subgrid_stats_rename.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Mon Jul 28 20:30:28 2014 UTC (12 years, 1 month ago) by gforget
Branch: MAIN
Changes since 1.1: +6 -4 lines
- fix windows PC compatibility.

1 gforget 1.1
2 gforget 1.2 dir0='./';
3 gforget 1.1
4     tmp1=dir([dir0 '*final.mat']);
5     for kk=1:length(tmp1);
6     tmp2=tmp1(kk).name;
7     tmp3=[tmp2(1:end-9) 'prc10.mat'];
8 gforget 1.2 if ~ispc;
9     system(['mv ' dir0 tmp2 ' ' dir0 tmp3]);
10     else;
11     system(['rename ' dir0 tmp2 ' ' dir0 tmp3]); %DOS equivalent
12     end;
13 gforget 1.1 end;
14    
15    
16    

  ViewVC Help
Powered by ViewVC 1.1.22