#!/bin/bash
function ergodic(){
for file in ` ls $1 `
do
if [ -d $1"/"$file ]
then
ergodic $1"/"$file
else
echo $1
echo $file
cat $1/$file |grep "mapToAuction" |grep "hit =" |awk -F "hit = [ []" '{print $2}' |awk -F "[}]]" '{print $1}' >> /home/admin/logs/readlogreult
fi
done
}
INIT_PATH="/home/admin/logs"
ergodic $INIT_PATH
Shell日志合并
最新推荐文章于 2023-02-14 15:56:48 发布