On Thu, 03 Jul 2014 12:41:14 -0400
Jean-Luc cooke <[email protected]> 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
_______________________________________________
Linux mailing list
[email protected]
http://oclug.on.ca/mailman/listinfo/linux

Reply via email to