tailgrep 101 B

12345
  1. #!/bin/sh
  2. filename=$1
  3. shift
  4. #echo "parametres : $@"
  5. [ "$1" != "" ] && cat $filename | grep $* | tail