I don't get it. At least on stackoverflow homework is fine, so that seems irrelevant for askubuntu as well.
Why is this question closed?
Seems like a fairy standard admin type question. Presumably bash scripts should be on stackoverflow instead?
Notably, not a generic programming question:
...and generic programming questions on Stack Overflow.
based on the accepted answer, and comments, this is just specific to this one q. I'd already researched whether hw is acceptable as a q.