Using special characters in file names

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
brijazz
Posts: 34
Joined: 25 May 2022, 20:53

Using special characters in file names

Post by brijazz »

How can I go about escaping the pipe character so that I can use it in my filename? I'd like to rename my files as such, with the pipe as a separator:

Shell: Select all

filebot -rename "$1" --db TheMovieDB -non-strict --format "{n} | {y}"
User avatar
rednoah
The Source
Posts: 24030
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Using special characters in file names

Post by rednoah »

:arrow: -unixfs will disable file path validation. Please read Target Unix Filesystem for details.

Shell: Select all

-unixfs

:!: That said, I would strongly discourage you from using | ' " \ ␤ etc in a file path. IMHO, you're just asking for unexpected issues down the line.
:idea: Please read the FAQ and How to Request Help.
brijazz
Posts: 34
Joined: 25 May 2022, 20:53

Re: Using special characters in file names

Post by brijazz »

Thanks for the solution AND the warning. I'll stick with the humble hyphen as my separator!
Post Reply