Advertisement
Advertisement
| 01.06.2008 at 11:41PM PST, ID: 23062937 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: |
set Exclude_List=ex_files.txt
set FIND_OPT="-type f"
set EXCLUDE="-iname `head -n 1 ${Exclude_List} | sed 's/\*/\\\*/' | sed 's/\?/\\\?/'`"
foreach f (`tail -n +2 ${Exclude_List} | sed 's/\*/\\\*/' | sed 's/\?/\\\?/'`)
set EXCLUDE='${EXCLUDE} -o -iname $f'
end
set FIND_OPT="${FIND_OPT} ! \( ${EXCLUDE} \)"
endif
set FILE_LIST=/tmp/tmp_$$
pushd $WORKDIR
find ./ ${FIND_OPT} -printf "%f\n" > $FILE_LIST
pop
****** ex_files.txt example*********
*.log
*.tmp
auto????.list
***********end of example **********
|