Search Results

Search: Posts Made By: simran
3,728
Posted By simran
Thanks to all
Thank you Cherry your code did work but with a small change, i changed the $3 to $2 only then i got all the occurances of the <init-param> which has default keyword, with $3 i would get only one...
3,728
Posted By simran
Your command does not work
Hi Yogesh,

The command:
sed '/param-/s/default/different/' file1 > file2
does not work.

Let me frame my question correctly.
I want to get all the lines starting from <init-param> and ending...
3,728
Posted By simran
Extracting lines between 2 strings only if the pattern patches
Hi Friends,

Please help me with the following problem:
I have an xml file with the following lines:
<init-param>
<param-name>/default/directory</param-name>
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy