I have a tool that wants a filename.ext to make a bunch of files, and also wants a directory name to put them in. In my case filename/ would do.
cmd Filename1.ext Filename
cmd Filename2.ext Filename2
I've been trying to tackle it via find, but maybe there is a better way?
find . -iname "*.ext" -exec cmd ... ?