3 ms·
> That's like 10 lines in Python and much easier to read and test. It's a single command in bash, invoking a program far more efficient than anything you can p
by F-0X 7y ago
> That's like 10 lines in Python and much easier to read and test.
It's a single command in bash, invoking a program far more efficient than anything you can put together in python. It is literally a tool written for this exact purpose. I think it is simply ridiculous to not use a pre-existing tool that frankly you cannot out-do with a scripting language.
Even if you are writing a python script, you should _still_ use find to search for files if there is _any_ complexity in the search requirements.