#!/bin/sh BOT="TC-14" filename=$1 shift pattern=$1 shift num=20 if [ "$1" = "-n" ] ; then shift num=$1 shift fi #echo "parametres : $@" [ "$1" != "" ] && cat $filename | grep $* | egrep -v "^[^ ]* <[^>]*> $pattern" | egrep -v "^[^ ]* <.$BOT>" | tail -n $num