You Don't Always Need a Script
Before writing a script, consider: could this be a one-liner? Or an alias? The simplest solution is usually the best.
The Automation Ladder
1
Use history (↑ arrow)
For things you do occasionally. Just recall the command.
2
Create an alias
For single commands you use often. Quick to create.
3
Write a script
For multi-step processes. More effort, more flexibility.
Key Takeaway
History → Alias → Script. Start with the simplest option that works.