Hello Every one
I have a problem with me which i want to solve using shell script.
I want to display lines from my apache configuration. I want some thing like this ...
Script should display entries from <VirtualHost Ip.Ip.Ip.Ip> to sever.domain.com only
and all occurrence of domain.com should be replaced by test.com.
Like my original entry is as below.
==========
<VirtualHost Ip.Ip.Ip.Ip>
something
something
....
ServerName domain.com
ServerAlias server.domain.com
something
something
......
</VirtualHost>
O/p should be as given below.
---------
<VirtualHost Ip.Ip.Ip.Ip>
something
something
....
ServerName test.com
ServerAlias server.test.com
</VirtualHost>
--------
=========
Please guide me with this.
Thanks,
