Last active
December 29, 2017 17:18
-
-
Save nicewook/6e0ef507a5b15ed7a879a81e8336e758 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
c=1; d=1; mkdir -p dir_${d} | |
for file in * | |
do | |
if [ $c -eq 3001 ] | |
then | |
d=$(( d + 1 )); c=0; mkdir -p dir_${d} | |
fi | |
mv "$file" dir_${d}/ | |
c=$(( c + 1 )) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
위 코드에서는 띄어쓰기마저 중요하다