Question on exclusion using mirror


#1

I have almost figured out how to use lfpt/sftp with the mirror command. In trying to replace wget, I am using the mirror command. I can exclude certain types of files starting with a specific character, but in the old script that I am replacing, there is a grep -iv f filename.

such as
cat ${WORK_DIR}/filename | grep -i “[ ][f]$” | grep -v “[/][_]” | grep -v “[/][+]” | grep -v “[/][@]” | /usr/bin/grep -iv -f ${DICT_DIR}/excludeKeywords.lk |

I can’t figure out how to do the grep -iv excludeKeywords.lk. This reads the file looking for a match inside the file and if it is found, exclude its that item.

I have not been able to figure out how to do this using mirror --exclude.