3 ms·
From the google Shell Style Guide: "If you are writing a script that is more than 100 lines long, you should probably be writing it in Python instead. " https:
by rb808 8y ago
From the google Shell Style Guide: "If you are writing a script that is more than 100 lines long, you should probably be writing it in Python instead. "
https://google.github.io/styleguide/shell.xml https://google.github.io/styleguide/shell.xml
- h1d 8y agoLOC alone doen't mean much. I have a backup script in fish of 400+ lines of code because it tries to dump data out of different sources like MySQL, PGSQL, InfluxDB, /etc files and others. Just use what feels comfortable achieving the task.
- notabee 8y agoThat guide is really useful for making scripts more readable.