I wanted to cleanup some of the old pdf files but not clean out the .doc/.tex in there.
Also, .zip was of no use, so wanted to get rid of that too!
This small matlab script did the job!
jj=3 because . and .. are first two from the dir.
filename =dir;
filename.name
for jj = 3:length(filename)
this = filename(jj).name;
if isdir(this)
this
eval(['cd ' this])
!rm -r *.pdf
!rm -r *.zip
cd ..
end
end
-->
No comments:
Post a Comment