#!/bin/bash
#errorlog文件去除重复的条目
MINPARAMS=2
if [ $# -lt "$MINPARAMS" ]
then
echo "This script needs at least $MINPARAMS command-line arguments!"
echo "sourcefile targetfile"
exit 1
fi
awk '
{
str = ""
for(i = 11; i<=NF; i++)
{
str = str$i" "
}
print str
}
' $1 | sort |uniq &> $2
errorlog文件去除重复的条目
最新推荐文章于 2021-05-08 23:41:55 发布