IFS='/'; while read line ; do { arr=($line); exp="${arr[1]}${arr[2]}"; tmp=`echo $exp | sed -e 's/"//'`; if [ -z $tmp ]; then continue; fi; len=`expr length $tmp`; if [ $len -gt 30 ]; then grep "${arr[1]}/${arr[2]}" mig_proxy.cdr.26_JUL_2012_mig* | grep -v ${arr[0]}; fi } done < cdr.26_JUL_2012* > report.26_JUL_2012 2>&1
--brief: read line from has delimited by "/" and take third splitted str and search string in other files
--brief: read line from has delimited by "/" and take third splitted str and search string in other files
No comments:
Post a Comment