Friends don’t let friends do string manipulation in bash.
youre right
thats what
sedis for
Anything I can do in Shell I will do in Shell and yes I am a devops engineer thanks for asking.
Shellcheck really helps
Obligatory relevant xkcd https://xkcd.com/1205/
The only validation you should expect and need is self-validation.
Your work is absolutely valid and important. Your efforts are absolutely appreciated and worthwhile. But people are stuck in their own heads and work and stress and concerns and desires and validation loops and it takes actual work to break out of that to not only offer appreciation but to even realize that they need to offer it.
And for that reason, you should also really appreciate anyone that validates you.
I know a bit of HTML so I just started learning Python. It’s fairly easy and fun, haven’t made anything real yet tho
Things that could have been done in bash is python’s best usecase. And bash sucks for scripting. Why not python?
have you ever tried to recreate a simple shell pipeline in Python
If we’re talking about 5 like script, then sure. Just use bash. But python is much better long term, in my experience, for scripts any bigger than that.
Not really true. Python was created for, and is still best used for data science. It’s user-friendliness made it a first for many inexperienced programmers too, and it started to be used for way more than it was initially intended. I’m not saying it’s bad at everything else, but there’s most certainly better tools for the job.
I won’t argue with what it was created for, but I disagree that it’s best usecase isn’t as a bash replacement. That’s the only spot I’ve used and liked it.
Groovy is better
thoughts on lua ?
Lua is weird, but I would rank it same as Python
Lua is not as common as python. Every team I’ve worked on knew X and python. C++, Java, JS, or node, and then also python.
lua is hot and sexy
If I have to install it myself instead of being able to assume it’s on the system by default, that’s a Problem.
… minimastic iso users: 😐
also i think it comes with neovim
I’m using G’MIC for raster-graphic image-processing, but I can do other things in it too with ease. I feel this post so much.
deleted by creator
They may not know but they will when I explain kekeke
I can’t think of a single reason to use bash over Python. Anything you can do in bash can be done in pure Python. Unless you’re working in some embedded environment it’s a non-issue to install a Python interpreter (you certainly already have one). I would only use sh/bash for packages I’m distributing to avoid the external dependency, and then only if it’s a relatively simple script.
Bash is much better for doing file operations and piping the output across multiple commands
Better than subprocess.getoutput?
Python is never the right answer!
what is a well-known genus of non-venomous snake ?
This isn’t jeopardy! 🤣
lol
Anaconda!
Wait…
I know there’s a lot of downvotes because there are people reading this as hate toward Python. On one hand, one can make the case that it is overused and this doesn’t bold well for those that simply can never like it’s syntax. On the other hand, Python is perfect for small scripts that isn’t tailored for a Domain or just quick codes.
Honestly, I’m not really a fan of the formatting and syntax of Python but I agree, it is a fine choice for scripting things quickly if you don’t mind the language itself.
The biggest issue I have with it are all the incompatible versions, juggling modules, having some other random thing with a ridiculous configuration, where a bash script would be infinitely easier. Anything more complicated and Python is just too much of a headache.







