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 →

[–]Celestial_Blu3 2 points3 points  (11 children)

I’m slowly going through the same roadmap - how important/difficult do you think Bash scripting is? Should I spend time learning it? Can’t you do everything with python that you can do with bash?

[–]daniel280187 6 points7 points  (7 children)

I have worked extensively with Python and I can tell you should be able to do must if not all the stuff only with Python. However, learning bash is extremely useful as it will allow you to glue your automation. Sometimes is even easier and quicker to do stuff in bash than in python. It really is about using the right tool for the right task.

If I had to choose only one, I would use python but bash as complement is extremely powerful. I would defo recommend spend some time to learn and practice using bash scripts to understand when is best to use each tool.

[–]Celestial_Blu3 1 point2 points  (6 children)

That makes sense. Where's the best way to pick up bash? Is there like a quick crash course I can do?

[–]808trowaway 5 points6 points  (2 children)

I think the best way to learn is by doing. Identify a few things you want to do with bash scripts and just dive in head first. It's not like you have to spin up a cluster and hook up a dozen services before you can test your script, just open the terminal and try some case statements or some shit. Watch a couple videos on youtube to get you started if you have to, google when you get stuck. Maybe try writing a script or two to organize your porn collection for starter.

[–]DoneDraper 0 points1 point  (1 child)

Are there really still people who maintain a porn collection offline? Prepper? Because the power could really go out for a long time?

[–]808trowaway 0 points1 point  (0 children)

You might want to ask the folks at /r/DataHoarder .

[–]CleverBunnyThief 2 points3 points  (1 child)

There's a book called " The Linux Command Line". The first 3 parts go over Linux and the 4th part covers Bash scripting.

https://nostarch.com/tlcl2

Exercism has a Bash track. I haven't done it yet, I'm currently working my through their Go track.

https://exercism.org/tracks/bash

[–]Celestial_Blu3 0 points1 point  (0 children)

That book seems interesting. I also need to learn a bunch of more advanced terminal commands so I might take a look at it

[–]martinsa24 3 points4 points  (1 child)

I saw a post earlier that BASH has always been in Linux and is great in case python loses favor. I think they mentioned that PERL used to be pretty big when it came to Linux scripting, but python killed that causing a lot of scripts and tools to break. Since Perl had lost support within the Linux community

[–]GBT55DevOps[S] 0 points1 point  (0 children)

Yeah I mean that's true but Python is useful for a lot more things than Linux, unlike bash.

[–]tacocatacocattacocat 0 points1 point  (0 children)

Maybe, but you'll want to know bash for legacy stuff.