Re: find exec rm

2017-07-13 Thread Cameron Simpson
On 13Jul2017 11:33, bruce wrote: i'm missing something. thoughts/comments? trying to do a rm with find/exec. ssh crawl_user@1.2.3.4 " rm -f '/cloud_nfs/*hash*.dat' ; find /cloud_nfs -name '*austincc*master*book*.dat' -exec rm {} \; rm -f '/cloud_nfs_fetch/*hash*.dat' ; " i get find: paths

Re: find exec rm

2017-07-13 Thread Rick Stevens
On 07/13/2017 11:27 AM, Tom Horsley wrote: > On Thu, 13 Jul 2017 10:50:50 -0700 > Rick Stevens wrote: > >> Of course, you COULD use "-delete" in the find command rather than >> doing an "-exec rm {} \;": > > Or for anything that would run a command that takes a > list of arguments (rm, chown, chm

Re: find exec rm

2017-07-13 Thread Tom Horsley
On Thu, 13 Jul 2017 10:50:50 -0700 Rick Stevens wrote: > Of course, you COULD use "-delete" in the find command rather than > doing an "-exec rm {} \;": Or for anything that would run a command that takes a list of arguments (rm, chown, chmod, etc) you could use -print0 in the find command and pi

Re: find exec rm

2017-07-13 Thread Rick Stevens
On 07/13/2017 09:26 AM, Jon Ingason wrote: > Den 2017-07-13 kl. 17:33, skrev bruce: >> hey guys.. >> >> i'm missing something. thoughts/comments? >> >> trying to do a rm with find/exec. >> >> ssh crawl_user@1.2.3.4 " rm -f '/cloud_nfs/*hash*.dat' ; find >> /cloud_nfs -name '*austincc*master*boo

Re: find exec rm

2017-07-13 Thread Jon Ingason
Den 2017-07-13 kl. 17:33, skrev bruce: > hey guys.. > > i'm missing something. thoughts/comments? > > trying to do a rm with find/exec. > > ssh crawl_user@1.2.3.4 " rm -f '/cloud_nfs/*hash*.dat' ; find > /cloud_nfs -name '*austincc*master*book*.dat' -exec rm {} \; rm -f Here is the problem--