I use this function to feed some filenames to another command.
function fun(){
find "${@}" -print0 | xargs -r0 other_command
}
When invoked, all arguments a passed to find
in order to filter the filenames ( -type, -name,
etc.)
Is there some way to pass some of those arguments to other_command
?
Variable amount of arguments if possible.
Something like this
fun [list of aguments for find] [list of aguments for other_command] # pseudo-phantasy syntax
Is it possible?