Lorem ipsum
Last login: Thu Aug 13 01:28:41 on ttys000
MacBook-Pro-Artem:~ artemkaygorodtsev$ cd /Users/artemkaygorodtsev/Desktop/test
MacBook-Pro-Artem:test artemkaygorodtsev$ bash #!/bin/bash
bash-3.2$
bash-3.2$ mkdir new; #Создаем директорию, в которую будут складываться переконвертированные файлы
bash-3.2$ echo "Start convert.";
Start convert.
bash-3.2$ for f in *.mp4;
> do
> echo "Converting file $f";
>
> ffmpeg -i "$f" -filter:v "crop=in_w-100:in_h-100» -c:a copy "new/${f%.mp4}.mp4";
>
> echo "Converting file $f complete";
> done;
> echo "Converting complete.";
script.sh: line 1: {rtf1ansiansicpg1251cocoartf1561cocoasubrtf610: command not found
script.sh: line 2: {fonttblf0fnilfcharset0: command not found
script.sh: line 2: f1fnilfcharset0: command not found
script.sh: line 2: f2fnilfcharset0: command not found
script.sh: line 3: syntax error near unexpected token `}'
script.sh: line 3: `}'