#!/bin/csh

cd /usr/local/tomcat/logs

set TARGET_LOG= (`find . -name "*.log" -print`)

@ m = 1
while ( $m <= $#TARGET_LOG )
                set LOG="$TARGET_LOG[$m]"
                /bin/cat /dev/null > ${LOG}
       @ m = $m + 1
end

'unix and linux' 카테고리의 다른 글

crontab 이야기  (0) 2007.10.10
bash shell script substitution  (0) 2007.10.09
shell에서 하루 전 날짜 구하기  (0) 2007.10.09
bash에서의 String(스트링) 비교  (0) 2007.10.09
bash에서 스트링 비교하기  (0) 2007.10.09
Posted by '김용환'
,