3 ms·
The glob breaks if you have a lot of files, or if you're in a deeply nested folder so the full filepaths are long. So the find command is better for a general-p
by MichaelBurge 10y ago
The glob breaks if you have a lot of files, or if you're in a deeply nested folder so the full filepaths are long. So the find command is better for a general-purpose script. You also didn't some variables, which can cause problems in a general-purpose tool.