Thursday, May 2, 2024
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 4370  / 2 Years ago, mon, october 17, 2022, 10:40:26

In the terminal, I want to use ffmpeg2theora to convert all the .MOV files in a certain directory to .ogv files. However, the following does not work:



ffmpeg2theora *.MOV


Is there a good way to repeat a command multiple times on different files?



Thanks!


More From » command-line

 Answers
7

If you use the default shell (bash), you can use the following:



for file in *.MOV; do ffmpeg2theora "$file"; done

[#43956] Tuesday, October 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atelti

Total Points: 194
Total Questions: 129
Total Answers: 110

Location: North Korea
Member since Tue, Jun 16, 2020
4 Years ago
atelti questions
Fri, Aug 26, 22, 02:44, 2 Years ago
Sat, Dec 10, 22, 21:37, 1 Year ago
Sat, Apr 9, 22, 13:57, 2 Years ago
;