일단 아래 코드로 파일들 생성하고.. 으겨.. 근데 쉘 스크립트 하나
답하는데 거창하져? 이건 그냥 제가 만든... 소습니당.
#include <stdio.h>
#include <stdlib.h>
#define MAX 100
int main(){
char buff[MAX+1];
int i=0;
for(i=1;i <= MAX; i++){
sprintf(buff,"cp /dev/null "resize of %003d.dat"",i);
printf("%s",buff);
system(buff);
}
exit(0);
}
본론으로 스크립튼..
#!/bin/sh
for image in *.jpg
do
mv "$image" "${image#resize of }"
echo "$image" "${image#resize of }"
done
echo last working is "mv $image ${image#resize of }"
가 되겠네여..
그럼..
mhlee...