I would like to find some files and turn them into a chain of arguments for a command. What I have so far is:
find . -name '*.yml' -exec cmd -f {} +
which results in
cmd -f ./foo.yml ./bar.yml
but what I really like to have is
cmd -f ./foo.yml -f ./bar.yml
(note the 2nd -f
). How can I achive this?