Why use Bash when Python exists?
>inb4 muh UNIX philosophy
You get a large, well documented standard library to use for your scripts. And with Python, you're forced to have good coding practices (e.g. for readability).
>>62115265
> whitespace matters
McFucking Kill yourself
How about to run python scripts?
Why would I use python?
>have to get a shell AND a python interpreter
>have to learn another language
vs
>can directly type smaller scripts into the shell without even needing a file
>can apply existing knowledge of shell utilities to script files
>can easily use any utility I'd use in the shell in a script
You don't always want to have to install a python interpreter on the machine you're working on.
>>62115265
Python is not a POSIX shell, is it? Can you use python as your login shell in the first place?
Why are python toddlers always so fucking stupid
>>62115265
>Why use Bash when Python exists?
For simple stuff, bash is much easier (for me). So running a sequence of commands, I'll probably use bash. Testing options with ffmpeg, bash. If what I need to do requires loops and if statements then I'll use Python.
The actual answer to your question is that there is no right answer. Use whichever is best for you.
>>62115678
Because Python is babies first language.
Literally retard-tier.