Mercurial > ec-dotfiles
comparison moefetch.sh @ 199:b9b90671616a
ls replacement fail
author | edhoprima@gmail.com <edhoprima@gmail.com> |
---|---|
date | Mon, 29 Jun 2009 12:29:04 +0000 |
parents | 735012343a67 |
children | 8efa600ebfdb |
comparison
equal
deleted
inserted
replaced
198:735012343a67 | 199:b9b90671616a |
---|---|
222 | 222 |
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}" | sed -e "${SED_GET_FILENAME}" | sort | comm -1 -3 "${TEMP_PREFIX}-error" - > "${TEMP_PREFIX}-ok" |
228 cat "${TEMP_PREFIX}-list" | grep -vf "${TEMP_PREFIX}-ok" > "${TEMP_PREFIX}-newlist" | 228 cat "${TEMP_PREFIX}-list" | grep -vf "${TEMP_PREFIX}-ok" > "${TEMP_PREFIX}-newlist" |
229 echo "$(echo $(wc -l < "${TEMP_PREFIX}-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 |