음냐... 일하던 중이라 대충 해보고 올렸더니... ;;;
find 문만 그럴듯하게... 동작하고.. run.sh 에는...
결과가 통채로 아규먼트로 전달 되는군요.. O.o
(라인별로 run.sh 에 아규먼트로 들어갈 줄 알았는데... ;;;;)
run.sh 를 아래와 같이 변경하면 될 것 같습니다.
% find . -type f -name \*.c -printf '%h/%f %TY-%Tm-%Td\r\n' | xargs -- ./run.sh
<snip run.sh>
LPP=TRUE
while [ "$LPP" = "TRUE" ]
do
if [ x"$1" != "x" ] ; then
if [ ! -d /home/ymir/$2 ] ; then
mkdir -p /home/ymir/$2
fi
cp -p $1 /home/ymir/$2
shift
shift
else
LPP=FALSE
fi
done
</snip>
아니면
find /target/path -type f -printf '%h/%f %TY-%Tm-%Td\r\n' > out.txt
처럼..
filepath yyyy-mm-dd
형태로 날짜만 뽑아와서 저장을 하고..
별도로 스크립트에서 읽어서 처리해야 할 듯 싶습니다.
엉터리 답을 올려서 죄송합니다.. ( __);;
Oh, I do believe everlasting love and destiny to meet you again
I feel a pain I can hardly stand all I can do is loving you
- *Mizz* the Magic Knight!