摘要:
#!/bin/bash# HJ test trigger filePATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexport PATHdirectory=/home/houjiao/test/filelist=`ls $directory`#for file in $filelistfor file in *.datdo exist=$(lsof ${directory}${file}) if [ $? ] && [ `echo $file |grep 'log'` 阅读全文