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
C# DbContext ServiceLifeTime
my note about C Sharp ServiceLifeTime
PostgreSQL Index Usage Monitoring
Having too many unused or underused indexes on a table can slow down write and update operations in your PostgreSQL database, making it crucial to regularly identify and manage them for optimal performance.
KAK Labs Newsletter #6 - Staying Safe From Pegasus Spyware
Newsletter #6 - Pegasus, Ruby, PostgreSQL and networkQuality tool
Material Design - Paragraph Spacing
According to Google's Material Design, keep paragraph spacing in the range between .75x and 1.25x of the type size.
Amazon SDK for C# - S3 File Download Methods
Comparison between `TransferUtility.DownloadAsync`, `DownloadSingleFileAsync`, and `GetObjectAsync`.