Based on your specs this should work: perl -lne'print $ARGV =~ /^PC=([^,]+)/, " $1" if /^Mac-Adresse:\s*([[:xdigit:]:]+)/' PC*John
Hello John, no, it doesn't It returns two times the name of the pc. Bye Andreas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/