I'm doing a loop in files of directories and I need to get the current directory and file name on each step.
for f in /path/to/*/*.ext
do
command "$d" "f" #! Here we send those two as parameters
done
I also need the file name without the extension ( .ext ). How should I make it?