|
|
|
|
|
by bonestormii_
2055 days ago
|
|
For scripts requiring any degree of complexity regarding data structures or architecture, for sure, use Python. But like, you can't just use Python to interact with your system. It will be such a pain in the ass. Piping and redirection in Bash is a million times more concise and expressive. Working with streams like this is what it excels at. But if you need to to populate some data structure and access data by key... python is better. Python's import system requires multiple lines. Python's spacing requirements require multiple lines and awkward spacing when typing directly in the shell. Sometimes you are writing a script, and sometimes you just want to do ${action} to ${file}_${i} in the directory. You owe it to yourself to be proficient in bash if you are working a lot in a unix-like environment. |
|