Bash is ideal for such automation.
This series will get you started!
What IsBash automation?
The Bash shell is a powerful Linux shell which allows in-depth automation of repetitive tasks.
Bash is also a scripting and coding language that grows on you.
I have been actively coding in Bash since 2012 and have used it much longer then that.
Bash also lends itself to many different software domains and use cases.
You may be wondering what sort of a title that is.
And you would be right, unless you were talking to a seasoned Linux developer.
They would smile at best.
That is because the two first letters of a well-written Bash script would always be, well, Shebang!
It happens to be that thissymbolas a whole is calledShebangas a whole.
as they may write extra unwanted binary data or characters to our script.
In other words; we need to use plain text.
Once this script is defined, we make it executable by executingchmod +x test.shat the command line.
One way of doing so is to use the simple positional parameters which are available in Bash by default.
The result is thathellois echoed back to us.
Next we passedhello world, however this echoed onlyhelloback to us.
We circumvented this behavior by putting quotes around the input when we passed’Hello CloudSavvyIT Readers!'.
Wrapping up
In this article, we reviewed the first set of Bash automation and scripting basics.
InBash Automation and Scripting Basics (Part 2)we look at variable quoting and more.enjoy!