#!/bin/sh filename=$1 shift #echo "parametres : $@" [ "$1" != "" ] && cat $filename | grep $* | tail