Find command "mssing conjuction error"

Hi ,
I am executing command

find /LOG_RECV -type f -mtime +100 ! -name flag_\* \
                           ! -path "/LOG_RECV/CPCN/DOC/*" \
                           ! -path "/LOG_RECV/PRIS/DOC/*" \
                           ! -path "/LOG_RECV/EDI/R000??/EDI*/" \
                           ! -path "/LOG_RECV/EDI/R000??/TOSEND???/eux030/" \
                           ! -path "/LOG_RECV/EDI/R000??/TOSEND???/b2b46/" \
                           ! -path "/LOG_RECV/EDI/R000??/TOSEND???/nosend/" \
                           ! -path "/LOG_RECV/EDI/R000??/TOSEND???/2star/" \
                           ! -path "/LOG_RECV/EDI/R000??/SENT???/eux030/" \
                           ! -path "/LOG_RECV/EDI/R000??/SENT???/b2b46/" \
                           ! -path "/LOG_RECV/EDI/R000??/SENT???/nosend/" \
                           ! -path "/LOG_RECV/EDI/R000??/SENT???/2star/" \
                           ! -path "/LOG_RECV/EDI/R000??/SENTfailed/eux030/" \
                           ! -path "/LOG_RECV/EDI/R000??/SENTfailed/b2b46/" \
                           ! -path "/LOG_RECV/EDI/R000??/SENTfailed/nosend/" \
                           ! -path "/LOG_RECV/EDI/R000??/SENTfailed/2star/" \
                           ! -path "/LOG_RECV/EDI/POCHGreport/HIST/" \
                           ! -path "/LOG_RECV/EDI/R000??/" \
                           ! -path "/LOG_RECV/ENV/*"      \
                           ! -path "/LOG_RECV/VL/LOG/APP*"       \
                           -exec rm -f {} \;

it is failing with error

find: missing conjunction

I have only added 2nd last line

! -path "/LOG_RECV/VL/LOG/APP*"       \

to the original command which was executing succesfully.

I am trying here to not delet all files APP* inside "/LOG_RECV/VL/LOG/"

Any suggestions

Do you have trailing whitespace after any of the / characters?

Do you get the same message if you remove all the -path sections and the -exec rm like this:-

find /LOG_RECV -type f -mtime +100 ! -name flag_\* >/dev/null

I've sent the standard output (all hits) to /dev/null for clarity.

If it does still give the error, consider the following adjustment:-

find /LOG_RECV -type f -mtime +100 ! -name "flag_*" >/dev/null

Robin

The issue was due to tailing whitespaces.

Thanks for help