Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Get unzipped files, copy and unzip them
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have a folder containing 2886 subfolder, and each subfolder contains zipped files. I want to enter each subfolder, copy the first 8 zipped files, copy them in a new folder, and unzip them in the new folder. I have no idea from where to start ...any help please
댓글 수: 0
답변 (1개)
Luke Halberstadt
2016년 8월 17일
Use the "ls" MATLAB command to acquire a list of subdirectories, e.g. filenames = ls; Use the "cd" MATLAB command to move to a particular subdirectory. Use the "unzip" MATLAB command as specified. Use the "!cp SRC_FILE DEST_FILE" command to invoke the "cp SRC_FILE DEST_FILE" shell command. Use the "mkdir" MATLAB command to create the necessary directories.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!