comparison moefetch.sh @ 198:735012343a67

another escapee
author edhoprima@gmail.com <edhoprima@gmail.com>
date Mon, 29 Jun 2009 12:27:58 +0000
parents a17a2f366680
children b9b90671616a
comparison
equal deleted inserted replaced
197:a17a2f366680 198:735012343a67
223 echo "Generating list of new files..." 223 echo "Generating list of new files..."
224 # THE FILES 224 # THE FILES
225 #ls "../${TARGET_DIR}" | grep -vf "${TARGET_DIR}-error" > "${TARGET_DIR}-ok" 225 #ls "../${TARGET_DIR}" | grep -vf "${TARGET_DIR}-error" > "${TARGET_DIR}-ok"
226 # 226 #
227 find "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" | comm -1 -3 "${TEMP_PREFIX}-error" - > "${TEMP_PREFIX}-ok" 227 find "${BASE_DIR}/${SITE_DIR}/${TARGET_DIR}" | comm -1 -3 "${TEMP_PREFIX}-error" - > "${TEMP_PREFIX}-ok"
228 cat "${SITE_DIR}-${TARGET_DIR}-list" | grep -vf "${SITE_DIR}-${TARGET_DIR}-ok" > "${SITE_DIR}-${TARGET_DIR}-newlist" 228 cat "${TEMP_PREFIX}-list" | grep -vf "${TEMP_PREFIX}-ok" > "${TEMP_PREFIX}-newlist"
229 echo "$(echo $(wc -l < "${SITE_DIR}-${TARGET_DIR}-newlist")) file(s) to be downloaded" 229 echo "$(echo $(wc -l < "${TEMP_PREFIX}-newlist")) file(s) to be downloaded"
230 230
231 else 231 else
232 if [ "${ISQUICK}" ]; then 232 if [ "${ISQUICK}" ]; then
233 echo "quick mode selected. Skipping check" 233 echo "quick mode selected. Skipping check"
234 else 234 else