Artificial intelligent assistant

How to find + convert on these .gif? I want `find` a list of .gif files, `convert` them all to series of `png` images with filename identifiers and loop those series in this LaTeX. I am thining here how to combine the `find` \+ `convert`. 1. I can list .gif file by : find -L *.gif -type f 2. I can convert .gif image to a series of png images BUT without own identifier # TODO take filename from find list and give to convert and to the resulted filename convert -coalesce giphy.gif out%05d.png Pseudocode where `{}.png` tries to say that take the new filename from the list of filenames but I think it cannot work because the list contains also `.gif` extension so it should be removed : find -L *.gif -type f -exec convert -coalesce {} {}.png + OS: Debian 8.7

Steeldriver's great answer in comment


find -L . -name '*.gif' -execdir sh -c 'for f;
do convert -coalesce "$f" "${f%.gif}%05d.png";
done' sh {} +

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a421abbb0e23336febb6ceec78fcbc3f