My goto: https://www.gnu.org/software/bash/manual/bashref.html
Create a script for something you're currently typing out by hand.. Then use those commands for a script.. Expand from there.
Create a script for something you're currently typing out by hand.. Then use those commands for a script.. Expand from there.