From: Craig White <craig.wh...@ttiltd.com> > but I have some conf files which look like > > server_name { > domain1.com > domain2.com > big.server.com > } > ;
What about something like: grep -P "^server_name {\n[^}]*" nginx.conf | grep -v "{\|}" JD _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos