Linux / UNIX Tech Support Forum
This is a discussion on How to print some lines from a file within the Shell scripting forums, part of the Development/Scripting category; Hello Every one I have a problem with me which i want to solve using shell script. I want to ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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, |
| Sponsored Links | ||
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make leafpad to print | satimis | Linux software | 0 | 25-12-2007 07:36 PM |
| Script to display number of lines and words from a file | newbewie | Shell scripting | 2 | 07-12-2007 10:37 PM |
| Load balancing pooling print jobs using CUPS print queues | raj | Getting started tutorials | 0 | 16-01-2007 09:08 PM |
| print data to txt | rock | Shell scripting | 1 | 10-03-2006 02:01 AM |
| Calculations across different lines & columns of a file | Guest | Shell scripting | 2 | 16-09-2005 04:18 AM |