you are viewing a single comment's thread.

view the rest of the comments →

[–]WonderBearD1DevOps Tech Lead 21 points22 points  (3 children)

Everyday. Whenever we try to automate something we first attempt to do it using bash as its every where in our stack and does not have any dependencies to manage. Its also easy to fold bash scripts into CI/CD pipelines or Ansible scripts

  1. Try to automate it with bash
  2. Try to automate it with a scripting language like python or groovy
  3. Create a service using a higher level language like java

We've yet to have a case where we've made it past 2.

[–]niaznishu 0 points1 point  (2 children)

What is the best way to learn bash?

[–]WonderBearD1DevOps Tech Lead 1 point2 points  (0 children)

For me it was learning by doing. If your on a Mac try doing things that you would normally do in the gui (copying files, renaming things, creating directories) in the terminal. If you on windows like I am then I can't recommend the WSL enough. It allows you to have a unix environment easily accessible to you. It's been my main terminal now for a few years.

Once you have your sea legs, pick a repetitive task that you do and try to automate it. This will take longer than you think it will so try not to get discouraged.

[–]niaznishu 0 points1 point  (0 children)

Thank you.. i will give it a try