perl -ne '/^root:\s*/ and $_ !~ /admin\@somewhere\.here/ and print' alias #### perl -ne '/^root:(?!\s*admin\@somewhere\.here)/ and print' alias