[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?
thanks


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?
thanks