Search Results

Search: Posts Made By: viniciusandre
14,937
Posted By viniciusandre
Got it, nevermind. I was putting it before the '....
Got it, nevermind. I was putting it before the '. The correct is '!.
Thanks by now!
14,937
Posted By viniciusandre
Ok! Good! And what if I want to print everything...
Ok! Good! And what if I want to print everything but this? Is there a '!' pattern to put somewhere?
14,937
Posted By viniciusandre
That was cool... This awk command wraps...
That was cool...
This awk command wraps everything inside the <parent> tags:

awk -v RS='</parent>' 'NR == 2 {print $0 RS } '

But I don't want to print just the second wrap, but the wrap that...
14,937
Posted By viniciusandre
Remove sections of a xml file with sed
I've been trying to remove some lines of a xml file that looks like this:


<parent>
<child>name1</child>
<lots_of_other tags></lots_of_other_tags>
</parent>
<parent>
...
Showing results 1 to 4 of 4

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