See this question: https://stackoverflow.com/questions/28652992/linux-random-script
User isn't asking about a specific question, they have posted what appears to be a homework assignment and are just asking for someone to submit a script that satisfies the requirements.
I voted to close, downvoted, and flagged it for moderator attention, but it occurred to me that maybe I shouldn't have flagged it. What is the correct action?
I flagged it because I think it should be deleted, not just closed.
Here it is, for anyone with <10k rep, since it is now deleted.