path: axiom_20210105dp1-1/book/2010-07.txt while true ; do if [ -e lckk ] ; then if ! pidof $(basename $(awk '{print $1}' lckk)); then echo $(cat lckk) is done rm lckk; path: axiom_20210105dp1-1/book/2010-07 while true ; do if [ -e lckk ] ; then if ! pidof $(basename $(awk '{print $1}' lckk)); then echo $(cat lckk) is done rm lckk;