Inside a one directory, it might be so simple as reading through the whole filelist in advance of processing it (and strace can make it seems like that's what occurs):How can I make my looping shell script pause after a loop by sending a little something like ctrl-z after which be continuable? 1Assuming that $COMMAND terminates productively, It'll