5 ms·
True. However 60 lines of bash would amount to 300 lines of Python.
by snidane 6y ago
True. However 60 lines of bash would amount to 300 lines of Python.
- diarrhea 6y agoPossibly, not necessarily, and I'd argue it's for the better. If a bash one-liner requires a wizard to decipher (especially because people way overuse short options over long ones in scripts), and 10 lines of equivalent Python can be understood by someone who has never actually written any Python, I know what I'd pick. This also helps in eradicating bugs. Bash is very hard to get right (hence this thread in the first place), even for the simplest stuff. This simply won't happen in Python (or any other proper language).