event not found

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Levaculik
Posts: 6
Joined: 05 Aug 2022, 00:33

event not found

Post by Levaculik »

I'm trying to run filebot via terminal, but it's giving me an 'event not found' error.
Follow the command I'm trying to use.

Shell: Select all

for f in *.mkv; do filebot "$f" -rename -r --format "{n.upperInitial( ).space('.').replaceAll(/[`´'''?,!]/,".")}.{ s00e00}.{t.space('.').replaceAll(/[()`´'''?,!]/,"")}.{vf}.CR.WEB-DL.{ac}{af .format(8:'DD+ 7.1',7:'6.1',6:'DD 5.1',5:'5.0',3:'2.1',2:'2.0')}.{vc.replace('Microsoft ', 'VC-1').replace ('AVC','H.264') .replace ('x264','H.264')}.{ audioLanguages.ISO3.joining('.','', '').upper().replace("ENG","pt-BR")}-Levaculik" --db TheTVDB -non-strict ; done
Could someone help me?
User avatar
rednoah
The Source
Posts: 23923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: event not found

Post by rednoah »

:arrow: Please read Cmdline and Argument Passing for details.


Yes:

Console Output: Select all

echo '!asdf'
!asdf
No:

Console Output: Select all

echo "!asdf"
bash: !asdf: event not found


:!: Note that you also have "..." inside "...". So you definitely wanna spend some time reading Cmdline and Argument Passing thoroughly.


Yes:

Console Output: Select all

$ echo 'a"b"c'
a"b"c
$ echo "a\"b\"c"
a"b"c
No:

Console Output: Select all

$ echo "a"b"c"
abc





:idea: bash expands ! to a previously used command, kinda like how * works for file paths:

Shell: Select all

$ filebot -script fn:sysenv | grep java.version
java.version: 21.0.3
java.version.date: 2024-04-16
$ !f | grep date
filebot -script fn:sysenv | grep java.version | grep date
java.version.date: 2024-04-16
:idea: Please read the FAQ and How to Request Help.
Post Reply