http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion/posts/bash/have-the-find-command-invoke-a-custom-shell-function.html
Skip to main content Private area snippets.bentasker.co.uk Search Tags BASH Python JS Misc Have the find Command Invoke A Custom Shell Function (BASH) Ben Tasker 2022-12-24 00:43 Category: BASH The find command accepts and -exec argument, allowing you to pass matching files into an arbitrary command. It's pretty useful, but sometimes you want to be able to have it invoke a custom function, which it can't do without a little bit of tweaking This snippet details how to have find invoke a...