Re: find exec rm

2017-07-13 Thread Cameron Simpson
/*hash*.dat' ; " i get find: paths must precede expression: rm Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] can't seem to see my error... however, if I remove the last rm -- the find/exec/rm works.. The argument to -exec is a comma

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,

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

Re: find exec rm

2017-07-13 Thread Rick Stevens
>> '/cloud_nfs_fetch/*hash*.dat' ; " >> >> i get >> find: paths must precede expression: rm >> Usage: find [-H] [-L] [-P] [-Olevel] [-D >> help|tree|search|stat|rates|opt|exec] [path...] [expression] >> >> can't seem to see my error... >>

Re: find exec rm

2017-07-13 Thread Jon Ingason
ression: rm > Usage: find [-H] [-L] [-P] [-Olevel] [-D > help|tree|search|stat|rates|opt|exec] [path...] [expression] > > can't seem to see my error... > > however, if I remove the last rm -- the find/exec/rm works.. > > thanks > ___

find exec rm

2017-07-13 Thread bruce
st precede expression: rm Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] can't seem to see my error... however, if I remove the last rm -- the find/exec/rm works.. thanks ___ users mailing lis