Say I have a large amount of files in a list, like this
$ mkdir inputs $ for i in $(seq 1 1 10000); do printf "$i\\n" > inputs/$i; done $ find inputs