Article 4YFVH [SOLVED] problems using the find command

[SOLVED] problems using the find command

by
jimleslie77
from LinuxQuestions.org on (#4YFVH)
I would like to run the below command:

find /nas/quota/slot_3/home/ -type d -iname '*_renamed_pending_deletion' ! -path /nas/quota/slot_3/home/Archive/* -exec mv {} /nas/quota/slot_3/home/Archive/ \;

ive also tried with double quotes:
find /nas/quota/slot_3/home/ -type d -iname "*_renamed_pending_deletion" ! -path /nas/quota/slot_3/home/Archive/* -exec mv {} /nas/quota/slot_3/home/Archive/ \;

I would expect the outcome to move any folders ending with _renamed_pending_deletion from the home directory to the home/archive driectoty, but i get this error for both the commands above:

Usage: find [-H] [-L] [-P] [path...] [expression]

could anybody help please, im running as su?

thankslatest?d=yIl2AUoC8zA latest?i=j54hFTuX-dA:iYCJbcs1cgM:F7zBnMy latest?i=j54hFTuX-dA:iYCJbcs1cgM:V_sGLiP latest?d=qj6IDK7rITs latest?i=j54hFTuX-dA:iYCJbcs1cgM:gIN9vFwj54hFTuX-dA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments