#이동
cd /path/to/a && \
find . -maxdepth 1 -type f | shuf -n 700 | while read file; do mv "$file" /path/to/b/; done
#복사
cd /path/to/a && \
find . -maxdepth 1 -type f | shuf -n 700 | rsync --files-from=- -av ./ /path/to/b/
'잡다한것들' 카테고리의 다른 글
cp대신 rsync로 파일이동 (0) | 2025.07.04 |
---|---|
특정 파일 필터링 후 이동 (0) | 2025.06.25 |
파일 다룰때 Argument list too long (0) | 2025.05.07 |
NVIDIA 그래픽 전력제한 확인 명령어 (0) | 2025.01.09 |
jupyter notebook 자동완성 켜기 (1) | 2024.12.30 |