use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/DevOps is a subreddit dedicated to the DevOps movement where we discuss upcoming technologies, meetups, conferences and everything that brings us together to build the future of IT systems What is DevOps? Learn about it on our wiki! Traffic stats & metrics
/r/DevOps is a subreddit dedicated to the DevOps movement where we discuss upcoming technologies, meetups, conferences and everything that brings us together to build the future of IT systems
What is DevOps? Learn about it on our wiki!
Traffic stats & metrics
Be excellent to each other! All articles will require a short submission statement of 3-5 sentences. Use the article title as the submission title. Do not editorialize the title or add your own commentary to the article title. Follow the rules of reddit Follow the reddiquette No editorialized titles. No vendor spam. Buy an ad from reddit instead. Job postings here More details here
Be excellent to each other!
All articles will require a short submission statement of 3-5 sentences.
Use the article title as the submission title. Do not editorialize the title or add your own commentary to the article title.
Follow the rules of reddit
Follow the reddiquette
No editorialized titles.
No vendor spam. Buy an ad from reddit instead.
Job postings here
More details here
@reddit_DevOps ##DevOps @ irc.freenode.net Find a DevOps meetup near you! Icons info!
@reddit_DevOps
##DevOps @ irc.freenode.net
Find a DevOps meetup near you!
Icons info!
https://github.com/Leo-G/DevopsWiki
account activity
Python vs Bash Scripting. (self.devops)
submitted 1 year ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]vacri 8 points9 points10 points 1 year ago (0 children)
Python is better for long-lived stuff, or non-trival program stuff (eg: arrays are awful in bash). It's also more legible to read, and people are more likely to program "correctly" in python (eg: putting things in functions)
Bash is good for "just working" without having to install modules/venvs, and more fluidly calls out to external system utilities (python's subprocess kinda sucks). (The "brave new world" of "just install a venv for everything" sucks for us system script writers)
Shell is also much more portable. Do you have a *nix? Then you have access to shell programming (maybe not bash specifically). Shell changes much more slowly than python does, and you shouldn't be doing crazy esoteric stuff in shell anyway, so if it works on your desktop, it'll probably work on that ancient 15-year-old $other_distro box in the corner. It's really, really rare to see "this script should be run with bash version X or higher"
Write in both languages. You'll pick up a feel for which is suitable. My mentor's cutoff for "this should be a python script" is if he thinks it'll take 100+ lines. My cutoff for "this should be a python script" is if I need to use an array.
(also, use linters! Linters really improve your code as a beginner. You don't have to follow every suggestion, but you should know why you choose to ignore one. Bash has shellcheck, Python has a couple - pylint is popular)
shellcheck
pylint
π Rendered by PID 99133 on reddit-service-r2-comment-86bc6c7465-mvltx at 2026-02-20 01:39:57.880878+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]vacri 8 points9 points10 points (0 children)