home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] GPX Files

On Thu, 03 Jul 2014 12:41:14 -0400
Jean-Luc cooke <jean-luc [ dot ] cooke [ at ] trustificorp [ dot ] com> wrote:

> 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".

This version handles spaces in names. Also, use single quotes. Double
quotes will expand the file names.

find / -name '*.gpx' -print0 | xargs -0 rm


-- 
Don't stop where the ink does.
	Shawn

references

message navigation