728x90
반응형
for var in {0..149}
do
cp ./images/test_$var.jpg ./new/images/
cp ./images/test_$var.txt ./new/labels/
done
bash 파일을 만들고 다음과 같이 작성해 준 후,
1) "chmod +x move_file.sh"다음 명령어로 bash file 권한을 풀고, "./move_file.sh"로 실행하거나
2) "bash move_file.sh" 등 명령어로 실행하면 수행 가능.
728x90
반응형
'사소한 Tip . 오류 해결법' 카테고리의 다른 글
[glob] glob 사용시, 경로에 대괄호(bracket)가 있는 경우 (0) | 2023.09.01 |
---|---|
[bash] loop in value list (0) | 2023.09.01 |
[Git] Your local changes to the following files would be overwritten by merge: (0) | 2023.08.23 |
[vscode] Docker container 내 streamlit/tensorboard 무응답 (0) | 2023.08.17 |
[Ubuntu/Linux] 특정 경로 내 파일명 나열하기 (0) | 2023.08.07 |