Re: awk awk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Craig White <craig.white@xxxxxxxxxx>

> 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux