#!/usr/bin/perl open(FILEINPUT,"$ARGV[0]"); while ($ligne = ){ if ($ligne=~/REGEXP/) { print $ligne; } } close(FILEINPUT) ;