Friday, May 3, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 3977  / 2 Years ago, mon, may 16, 2022, 10:17:21

I have a folder with a lot of swf files. They are named that way: fis1.swf; fis2.swf; fis3.swf; ... fis20.swf. I want to convert all of them into png files. I know it can be done with swfrender from swftools, but it only renders one file per time.


More From » image-processing

 Answers
6

I'd probably use find to do this:



find -iname 'fis*.swf' -exec swfrender "{}" -o "{}.png" ;


But you could probably use other sorts of loops:



for f in fis{1..20}.swf; do
swfrender "$f" -o "$f.png"
done

[#26513] Monday, May 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
disdry

Total Points: 133
Total Questions: 128
Total Answers: 109

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
;