="'$2...">
美文网首页
grep/sed/awk

grep/sed/awk

作者: Lacia | 来源:发表于2017-07-04 18:38 被阅读0次

awk -F '[ ;]+' '{if ($1>="'$1'" && $1<="'$3'" && $2>="'$2'" && $2<="'$4'"){print;}}' $logdir/$logfile

sed -n "/$start_day $start_time/,/$end_day $end_time/p" $logdir/$logfile > log_test1 2>&1

egrep -i 'Push|Fetch|report' log_test1 | egrep -w "$5"

awk -F '[,]' '{if(($3~/commandId/)&&($2~/307/)){print $3}}' command.log

相关文章

网友评论

      本文标题:grep/sed/awk

      本文链接:https://www.haomeiwen.com/subject/royxhxtx.html