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--------------------------------------------^ The ";" is part of the find command. Try "...rm {} \; ; rm -f ..." I have not tested this but should works. > '/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... > > however, if I remove the last rm -- the find/exec/rm works.. > > thanks > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > -- Regards Jon Ingason _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx