no need for a loop find path  type f  exec shred  n z remove wipe in any case  i am not sure how useful this is shred is supposed to be run on entire disks or disk partitions on newer disks with enough free space the disk controller might simply write the new contents to a different physical block and lazily garbage collect the old block  which would still have the old data on it you probably want secure erase file instead 