<div dir="ltr">I will admit to being a bit of an outlier...<div><br></div><div>I am the current maintainer of a system configuration bash script that is over 2000 lines long. It has 20+ years of history at Georgia Tech (and some other USG schools), and was refactored (locally) in the last 5-6 to ONLY use shell commands, or simple and likely installed utilities on a system (perl, awk, sed, ssh). This script has been maintaining machines from Solaris to current versions of RHEL and Ubuntu, and every now and again, Mac OS.</div><div><br></div><div>Why?</div><div><br></div><div>I, like a couple of the original authors, are pretty good with shell scripts, and shell is available on the systems we care about. Twenty years ago, there wasn't a lot available for systems management, particularly across platforms. Granted, I am the one who is also getting it to branch out by detecting/installing newer management systems (SaltStack, Ansible), as well as manage its continued development in Github. But it ultimately all starts with shell for us. And with that kind of history, well, it has had a lot of debugging, so things just work.</div><div><br></div><div>And no, I have no plans to retire it or completely replace it with yet another language or tool. Augment it? Absolutely. That's actually one of its best features, it makes that part easy.</div><div><br></div><div>Brian</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 26, 2021 at 10:12 PM David Jackson via Ale <<a href="mailto:ale@ale.org">ale@ale.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hey Everyone,<br><div><br></div><div>When do you guys feel that your bash scripts have gotten too long? When do they need to be broken out into individual files, and when does doing so make them less easy to maintain or follow?</div><div><br></div><div>Also, how do you organize your scripts so they are easy for newcomers to understand?</div><div><br></div><div>Your thoughts are appreciated!</div><div><br></div><div>Thanks!</div><div>Dave</div></div>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="https://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">https://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>