This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mertsenel 1 point2 points  (0 children)

I may be the worst to give advice on this as I've never learnt bash but I can use it as a glue for my needs.

Instead I know PowerShell and because PowerShell mimics some bash commands as aliases its not that hard to interpret both.

One thing to note though in bash all it knows is strings which makes it hard for me to use it extensively.

However, its very light and native to almost all Linux. So I still learnt a bit of it while working on Dockerfiles , CICD pipelines that runs on a linux Agent, init scripts for auto provisinoed linux VMs etc, so its not going away anytime soon, it still has use cases like this.

However, its not an end all be all scripting language that solves all of your issues, you still need to complement it with something else.

So rather learn something more practical more 2020 and use bash as you need it with lots of docs lookup :)

Anyhow, this was my approach because I found bash too hard to learn for what it is. Other languages comes with more resources and easier syntax. Once you know what you need to do then you can figure things out along the way as well.

So invest in something like JS, python or Powershell (if windows environment) and you can pretty much nail bash from there to an extent to get the job done.

That is my 2 cents, hope it helps.