4,543,437 th visitor since 2017.2.1 ( Today : 22408 )
Computer ???
No. 66
Name. swindler
Subject. Grep SubDirectory까지 검색 - Shell Script
Main Cate. Linux
Sub Cate.
Date. 2005-07-07 15:51
Hit. 6081 (210.124.73.182)
File.
#!/home/devuser/myshoptemp/bash/bin/bash
# script by tallboy

filelist=`find /home1/app/tmax/jsp/lgmyshop/engine9251/MyGroup/_DefaultContext/su_admin -name "*.java"`;
for filename in $filelist ; do

echo "$filename start ------"
res=`grep "createStatement" $filename`
echo "$res"
res=`grep "prepareStatement" $filename`
echo "$res"
res=`grep "close" $filename`
echo "$res"
echo "$filename end\n\n-------"
# res=`grep "getConnection" $filename`
# if [ ${#res} -gt 0 ]; then
# res=`grep "freeConnection" $filename`
# if [ ${#res} -eq 0 ]; then
# res=`grep "cw.close" $filename`
# if [ ${#res} -eq 0 ]; then
# res=`grep "conn.close" $filename`
# if [ ${#res} -eq 0 ]; then
# echo $filename
# fi
# fi
# fi
# fi
done;

[바로가기 링크] : http://coolx.net/cboard/computer/66



swindler find ./ -name '*.jsp' -exec grep 'aaa' /dev/null {} \; 2006-12-27
Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog