I am trying to add album art to m4a files using AtomicParsley. The following works for the given folder (has multiple m4a files but only one cover.jpg) :
for f in *.m4a; do AtomicParsley "$f" --artwork cover.jpg --overWrite; done
As I want to do this recursively (each folder has one unique cover.jpg and multiple m4a files) and all the subfolders have the same image name (i.e., cover.jpg though they are different), I was trying the below but it picks the cover.jpg from the first subfolder and applies to all other subfolders (that is wrong since every subfolder has its own cover.jpg)
for f in **/*.m4a; do
for j in **/cover.jpg; do
AtomicParsley "$f" --artwork $j --overWrite
done
done