unexpected token
Code:
$ for %%a in (A B C D E) do Echo %%a |
You are trying to use DOS/Windows .bat file commands in bash, which has a completely different syntax. Try
Code:
for a in A B C D E ; do echo "$a" ; done |
That was super dumb of me. How I got there is trying to do
Quote:
TIA |
Combine post#2 with this bit of information:
Code:
WinDos: %%~nA Code:
for A in *.mp4; do ffmpeg -i "$A" -vf "select=gte(n,300)" -vframes 1 "${A%.*}.png"; done |
@Nevem Teve
I have no idea what that means. |
I get
Quote:
|
Don't bother even if I leave out that part I get other errors. This just too complicated for me.
Thanks for the response tho. |
Sorry, I left of the \backslash, so try this:
Code:
for A in *.mp4; do ffmpeg -i "$A" -vf 'select=gte(n\,300)' -vframes 1 "${A%.*}.png"; done |
try this (replace " with '):
Code:
for A in *.mp4; do ffmpeg -i "$A" -vf 'select=gte(n,300)' -vframes 1 "${A%.*}.png"; done |
It was the \
I'm happy I came back. It works like charm. Thank you. Solved. |
All times are GMT -5. The time now is 07:19 AM. |