Grep help required
#1
Scooby Regular
Thread Starter
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes
on
0 Posts
Grep help required
ah, the joys of grep, it's really powerfull but I'm a muppet and can never really work it out, so, I'd like some help from any experts out there.
I've got an XML file (com.dock.apple.plist if you really must know), that has lots of data in it (funny that!)
Now, there are sections like this:
What I want to do is to find these sections and remove them. I'm guessing I should be able to use grep to do this, start off looking for the <key> _CFURLAliasData item, and stop at the </data> bit. Am I correct? if so, then what is the grep pattern I need?
TIA
I've got an XML file (com.dock.apple.plist if you really must know), that has lots of data in it (funny that!)
Now, there are sections like this:
Code:
<key>_CFURLAliasData</key> <data> AAAAAAFmAAIAAQxBcHBsaWNhdGlvbnMAAAAA AAAAAAAAAAAAAAC7/gcmSCsAAAAAAAIVSW50 ZXJuZXQgRXhwbG9yZXIuYXBwAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAB/bruyy+cAAAAAAAAAAP////8A AAkAAAAAAAAAAAAAAAAAAAAADEFwcGxpY2F0 aW9ucwAQAAgAALv+TXYAAAARAAgAALuzBCcA AAABAAAAAgAiQXBwbGljYXRpb25zOkludGVy bmV0IEV4cGxvcmVyLmFwcAAOACwAFQBJAG4A dABlAHIAbgBlAHQAIABFAHgAcABsAG8AcgBl AHIALgBhAHAAcAAPABoADABBAHAAcABsAGkA YwBhAHQAaQBvAG4AcwASABYvSW50ZXJuZXQg RXhwbG9yZXIuYXBwABMADS9BcHBsaWNhdGlv bnMA//8AAA== </data>
TIA
Thread
Thread Starter
Forum
Replies
Last Post
gazzawrx
Non Car Related Items For sale
13
17 October 2015 06:51 PM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM