Shawn & Jean-Luc, I'm aware of the two option you propose, I've just know idea how to implement them. == Bruce On Thursday, July 03, 2014 03:07:43 PM linux-request [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca wrote: > Message: 2 > Date: Thu, 03 Jul 2014 12:41:14 -0400 > From: Jean-Luc cooke <jean-luc [ dot ] cooke [ at ] trustificorp [ dot ] com> > To: linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca > Subject: Re: [OCLUG-Tech] GPX Files > Message-ID: <53B587AA [ dot ] 6090204 [ at ] trustificorp [ dot ] com> > Content-Type: text/plain; charset=UTF-8; format=flowed > > https://www.google.ca/search?q=bash+find+matching > > find / -name "*.gpx" | xargs rm > > This assumed there are no spaced in the paths produced by "find". > > On 03/07/14 12:34, Bruce wrote: > > OCLUG, > > > > I need script would delete all my found caches in a > > GPX file. This is a XML based file format. > > > > Each entry starts with <wpt SOMETHING > > > > > WITH A BUNCH OF LINES IN THE MIDDLE, INCLUDING THIS LINE WHICH > > INDICATES I'VE FOUND THE CACHE. WHAT IS IN BETWEEN THE OPENING > > AND CLOSING TAGS CAN VARY A LOT. > > > > <groundspeak:finder > > > > id="A_NUMBER">danceswithwords</groundspeak:finder> > > > > > > Ends with <wpt/ > > > > > > > > > SAMPLE BELOW: > > > > <?xml version="1.0" encoding="utf-8"?> > > <gpx xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" > > creator="Groundspeak Pocket Query" > > xsi:schemaLocation="http://www.topografix.com/GPX/1/0 > > http://www.topografix.com/GPX/1/0/gpx.xsd > > http://www.groundspeak.com/cache/1/0/1 > > http://www.groundspeak.com/cache/1/0/1/cache.xsd" > > xmlns="http://www.topografix.com/GPX/1/0"> > > SNIP...