Post

某日志处理

Daily Shell

cat 20131001.logsed ‘s/”” //’sed ‘s/” “/”\t”/g’awk -F”\t” ‘BEGIN{}{if($13!=”"400"” && $13!=”"403"” && $13!=”"404"”){print $0;}}END{}’ > 20131001.log.lz
This post is licensed under CC BY 4.0 by the author.