Add file size check and looping a command over files