3 if [ x
"$1" = x
"" ]; then
4 echo "Usage: $0 <outfile> [find_path(.)]"
8 if [ x
"$2" = x
"" ]; then
13 TOFIND
=`readlink -nf ${TOFIND}`
16 echo "From [${TOFIND}] to [$1]:"
17 echo "Find in [${TOFIND}]" >> $1
19 find -L ${TOFIND} -name '*.bam' |
while read a
;
20 do echo -n "Checking [$a] ...";
21 RES
=`gzip -t "$a" 2>&1`;
23 if [ "${RETVAL}" -ne "0" ]; then
24 echo -e "\b\b\b\b:Error=${RETVAL}.${RES}"
25 echo "[e${RETVAL}] ${a}${RES}" >> $1
27 echo -e "\b\b\b\b:OK."
28 echo "[ok] ${a}" >> $1