-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Grega Bremec wrote: | ~ find ${WAL_ARCHIVE} -type f | sort -g | while read archive; do | ~ if [ ! "${archive}" = "${REF_FILE}" ]; then Actually, this test is only possible since ${REF_FILE} was expanded using the ${WAL_FILE} mask and will contain full path to the log; if you used your old method to obtain ${REF_FILE}, it will NOT match here, as it only contains the filename. You should write the test like this: ~ if [ ! "`basename ${archive}`" = "${REF_FILE}" ]; then ~ ... Kind regards, - -- ~ Grega Bremec ~ gregab at p0f dot net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFELlmqfu4IwuB3+XoRA7PNAJ9Ks5+6l0dmAgeIixcofNTUjXy3FgCfT+D1 kNvLWQIlKuo+GzF05IfPu2U= =aiNg -----END PGP SIGNATURE-----