Shell Script First
- Categories:
- notes
Lately, I have been loving to write shell scripts to automate my workflows and save time instead of coding with Ruby.
Shell scripts are a powerful tool that allows you to execute a series of commands in a specific order. This can be useful for automating repetitive tasks or complex processes that require multiple steps.
In some cases, shell scripts may not be the best tool for the job. For example, if you need to connect to a database or perform more complex logic, using a programming language like Ruby or Python may be more appropriate. However, for simple tasks, shell scripts can be a quick and efficient solution.
Let’s take a look at a sample shell script I recently wrote:
Using other programming language such as C#, Java, Go, Ruby or Python, I am sure it will require more lines of code.
To improve my shell scripts skills, currently I am learning about sed
and awk
.
Recent Posts
How to Defend Against Brute-Force and DoS Attacks with Fail2ban, Nginx limit_req, and iptables
In this tutorial, I’ll explain how to protect your public-facing Linux server and Nginx web server from common threats, including brute-force and DoS attacks.
Is Getting AWS Solutions Architect Associate Certification Worth It?
If you are a full-time Software Engineer, there's no strong need to pursue this certification.
DevSecOps
My Notes about DevSecOps
AWS Secrets Manager
Explanation about AWS Secrets Manager with example code.
Envelope Encryption
Envelope encryption is the practice of encrypting plaintext data with a data key, and then encrypting the data key under another key.