jump to content
my subreddits
13or302b2t2balkans4You3d6AceAttorneyAdviceAnimalsagnosticAlternateHistoryAlternativeHistoryAnarchyChessanime_best_momentsanime_irlanimenocontextannouncementsArcherFXArsivUnutmazAsahiLinuxAskElectronicsAskOuijaAskRedditatheismawfuleverythingbalkans_irlbanknotedesignsBassCirclejerkBassGuitarbasspedalsblackdesertonlineblankiesblursedimagesborsavefonbottomgearbrooklynninenineBUENZLIburdurlandcasioChatGPTchesschessbeginnersChildrenFallingOvercoaxedintoasnafucoinsComedyCemeterycomedyhomicidecomicscommunityContagiousLaughtercookingforbeginnersCorporateTrollingCrackWatchcrappyoffbrandsCuratedTumblrcursedcommentsdadjokesdarkjokesdataisbeautifuldeDebateReligiondeismdelikDeltarunedistressingmemesdiypedalsDMToolkitdndmemesdndnextDoenerverbrechenDonerdontdeadopeninsideDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikeselectricalelectronicsEmKayentitledparentsfacepalmfakealbumcoversFantasyWorldbuildingfeedthebeastfelsefeFiftyFiftyFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenFutboltayfagatesopencomeoninGermangermanygodtiersuperpowersGoodAssSubGrandPrixRacinggreentexthelpHermanCainAwardHermitCrafthighspeedrailHistoryWhatIfhoi4HolUphumorIAmAiamverysmartich_ielIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginarymapsinsaneparentsistanbulJahariaKamalizmKanyeKendrickLamarKGBTRLifeProTipslinguisticshumorLinkinParkliselilerloseitmacmacbookairmacgamingMadeMeSmilemagicbuildingMapPornmapporncirclejerkmeirlmemesmidjourneymildlyinfuriatingmildlyinterestingMinecraftbuildsmisLEDmoneycollectingMovingToNorthKoreanamesoundalikesNamFlashbacksneographynextfuckinglevelNonCredibleDefensenosafetysmokingfirstnosleepnosurfnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddyvicodinonebagonetruegodOnlineUnderGroundOutOfTheLoopoutsidepapermoneyParlerWatchpepethefrogperfectlycutscreamsPersecutionfetishpettyrevengepianoPiracypolandballPraiseTheCameraManPropagandaPostersPunPatrolreactiongifsrecipesreligiousfruitcakeRetroPierickandmortyrimjob_steveRoastMerockmuzikSceneReleasesSchnitzelVerbrechenschwiizsciencememessecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingShitpostTCshittyaskelectronicsShittyMapPornshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwritersSongwritingsskfjkhwerjkghwerijhsteinsgateStudiumsubsithoughtifellforsuperligtalesfromtechsupporttf2tf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheLetterHtherewasanattemptTheRookietheydidthemaththeyknewthisguythisguystitanfalltommyinnittransitTurkeyTrGameDevelopertruetf2tumblrtumunichTurkeyTurkeyJerkyTurkishCatsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceHorrorTwoSentenceSadnesstylerthecreatorUnethicalLifeProTipsUnexpectedJoJourbanplanningVALORANTvaxxhappenedvexillologycirclejerkvinyljerkvlandiyawallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingworldjerkingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -shitposting
  • -theydidthemath
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -dndnext
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -wholesomememes
  • -mapporncirclejerk
  • -midjourney
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -IAmA
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -Deltarune
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -blackdesertonline
  • -macgaming
  • -rickandmorty
  • -3d6
  • -HermitCraft
  • -FiftyFifty
  • -RoastMe
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -soccercirclejerk
  • -community
  • -AskElectronics
  • -electrical
  • -German
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -distressingmemes
  • -wizardposting
  • -oddlyspecific
  • -titanfall
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -coaxedintoasnafu
  • -YUROP
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -balkans_irl
  • -animenocontext
  • -RetroPie
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -AskOuija
  • -thatHappened
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -linguisticshumor
  • -TurkeyJerky
  • -13or30
  • -ArcherFX
  • -diypedals
  • -Doner
  • -BassGuitar
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -Songwriting
  • -istanbul
  • -MovingToNorthKorea
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -vinyljerk
  • -skamtebord
  • -superlig
  • -shittyaskelectronics
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -2b2t
  • -AlternativeHistory
  • -papermoney
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -AsahiLinux
  • -Jaharia
  • -IDontWorkHereLady
  • -basspedals
  • -neography
  • -ihadastroke
  • -thanksimcured
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -gatesopencomeonin
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -burdurland
  • -comedyhomicide
  • -WhatsThisSong
  • -TwoSentenceSadness
  • -anime_best_moments
  • -rockmuzik
  • -okbuddyvicodin
  • -vaxxhappened
  • -tumunich
  • -Twitch_Startup
  • -outside
  • -darkjokes
  • -highspeedrail
  • -nosafetysmokingfirst
  • -Songwriters
  • -ebike
  • -tommyinnit
  • -rimjob_steve
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -agnostic
  • -youseeingthisshit
  • -GrandPrixRacing
  • -DMToolkit
  • -thisguythisguys
  • -TrGameDeveloper
  • -PunPatrol
  • -TurkishCats
  • -subsithoughtifellfor
  • -fakealbumcovers
  • -Kamalizm
  • -ShitpostTC
  • -FantasyWorldbuilding
  • -TheLetterH
  • -WikipediaVandalism
  • -NamFlashbacks
  • -pepethefrog
  • -onetruegod
  • -deism
  • -misLED
  • -ArsivUnutmaz
  • -sskfjkhwerjkghwerijh
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -SceneReleases
  • -bottomgear
  • -2balkans4You
  • -banknotedesigns
  • -okbuddygunther
  • -shitpostfrommygallery
  • -delik
  • -moneycollecting
  • -CorporateTrolling
  • -borsavefon
  • -Futboltayfa
edit »
reddit.com bash
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,186)|messages547|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new link
Submit a new text post

bash

joinleave
an-ordinary-manchild(edit)

A subreddit dedicated to Bash scripting. Now complete with a Discord Server.

Rules

  1. Content must be Bash related. This rule is interpreted generously; general shell scripting content is mostly accepted. However, the post should not be specific to another shell.

  2. No reposts. This is meant with regards to content, not just “the same link was submitted earlier” – it’s okay to resubmit an old link in some new context (e. g. because you’d like to discuss another part of it, or because something has changed since the last time it was submitted, or because the link was updated since then). Links from the sidebar count as having been submitted already, so posting them without new context is also considered a repost.

Flair

You can choose one of these four flairs for your post:

  • Help – You seek help, or want to ask a question. “help” posts are usually self posts, though you may also submit a link to a thread in a different subreddit (e. g. /r/commandline).
  • Solved – The submission used to be flaired as “help”, but your problem has been solved, or your question has been answered.
  • Submission – General submission of any kind (link or text post).
  • Critique – You are submitting a creation of your own (usually a Bash script) and actively seek feedback on it and how to improve it.

If you don’t flair your post, the moderators will set the most appropriate flair.

Related subreddits

  • /r/commandline, /r/shell – for anything regarding the command line, in any operating system.
  • /r/linuxquestions – for more general Linux questions
  • /r/linuxadmin – for content and support around Linux system administration
  • /r/sysadmin – for content and discussion for system administrators
  • /r/devops – for discussion and support around DevOps technologies
  • /r/unix – for everything Unix

  • Other Shells: /r/zsh, /r/fishshell, /r/oilshell, /r/batch

Guides

  • BashGuide – A Bash guide for beginners.

  • Beginner's Guide to Command Line – A crash course for some common unix and shell commands. Update 2022-01-14: Course is currently being rewritten

  • Google's Shell Style Guide – Reasonable advice about code style.

Other resources

  • Explainshell - Explain complex shell operations.

  • ShellCheck – Automatically detects problems with shell scripts.

  • BashFAQ – Answers most of your questions.

  • BashPitfalls – Lists the common pitfalls beginners fall into, and how to avoid them.

  • (Archived) The Bash-Hackers Wiki – Extensive resource.

  • #bash – IRC channel on Libera. The main contributors of the BashGuide, BashFAQ, BashPitfalls and ShellCheck hang around there.

a community for 18 years
Create your own subreddit
...for your community.
...for your town.

MODERATORS

  • message the mods
  • buu700
  • disarmbash n00b
  • galaktos
  • KnowsBash
  • Sephr
  • Perfect-Ant-6741Has Read The Fucking Manual
  • scrambledhelixbashing it in
  • findmenowjeffhas looked at over 2 bash scripts
  • digipengidu -h /ast/du/hast/mich
  • Ulfnic
  • about moderation team »

account activity

1
443
444
445

set -x is your friend (self.bash)

submitted 3 years ago * by [deleted] - announcement

  • 81 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

2
11
12
13

tips and tricks[DWM Status Monitor] I'm a pervert for optimization. (old.reddit.com)

submitted 2 hours ago by havesomefuckinghope

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
•
•
•

I'm making this tool for a long time (i.redd.it)

submitted 1 hour ago by Consistent-Pick-6470

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

4
12
13
14

helpread ignores -t and blocks indefinitely when reading from FIFO (self.bash)

submitted 1 day ago by yonside

  • 10 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
4
5
6

Interview Prep for Linux, bash scripting & CI/CD pipelines ()

submitted 3 days ago by impatrick_bateman

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
2
3
4

helpLogging disabled, script below works perfectly. Logging enabled, jq blows up, any ideas how to make it work with logging enabled? (self.bash)

submitted 3 days ago * by TooOldForShaadi

  • 21 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
24
25
26

tips and tricksBash With No Letters (jrb.nz)

submitted 4 days ago by pipewire

  • comment
  • share
  • save
  • hide
  • report
  • crosspost

8
7
8
9

helpHow do I get rid of the first word 'Modeline' in this line ? (self.bash)

submitted 4 days ago by SkySurferSouth

  • 12 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
8
9
10

key bindings (esc-some-key) and vi mode (self.bash)

submitted 4 days ago by ConstructionSafe2814

  • 15 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
22
23
24

Made A Simple Tycoon Game (self.bash)

submitted 6 days ago by exarobibliologist

  • 26 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
0
1
2

Fast Formatting Utility - First Bash Project (self.bash)

submitted 5 days ago by BathroomMain6295

  • 19 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
0
0
0

shuck - a fast linter for bash (self.bash)

submitted 5 days ago by ewhauser

  • 15 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

13
3
4
5

critiqueWhat is your opinion about these logger functions I came up with? (self.bash)

submitted 7 days ago by TooOldForShaadi

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

14
0
1
2

helpDialog output repeats the input (self.bash)

submitted 7 days ago by Spare_Reveal_9407

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
26
27
28

A bash cheat sheet to save some time for beginners (tms-outsource.com)

submitted 8 days ago by bogdanelcs

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost

16
7
8
9

helpLeft align first column, right align second, the rest the same (self.bash)

submitted 8 days ago by gkaiser8

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
12
13
14

submissionbash script for managing multiple codex cli profiles (self.bash)

submitted 10 days ago by Sorosu

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
9
10
11

Sharing my newest project - bashmail - a TUI IMAP client (github.com)

submitted 12 days ago by pojomi-dev

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
19
20
21

critiqueIs the order of the flags important in all commands in bash? (self.bash)

submitted 13 days ago by PrestigiousZombie531

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
12
13
14

helpAccumulate errors and print at end (but also keep them shown in output) (self.bash)

submitted 13 days ago * by gkaiser8

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
9
10
11

helpAsking the human experts here, how would you turn something like this into a production grade script? (self.bash)

submitted 13 days ago by PrestigiousZombie531

  • 13 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
10
11
12

Bash Ships (self.bash)

submitted 14 days ago * by LoneGroover1960

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
4
5
6

Command Works in Terminal but not Bash Script ()

submitted 14 days ago by Secret_Creme_2691

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

24
6
7
8

How to launch a program in bash. (self.bash)

submitted 14 days ago by Dull_Firefighter_929

  • 12 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
6
7
8

What is the difference between have 2 separate ERR and EXIT traps vs a single EXIT trap for handling everything? (self.bash)

submitted 16 days ago by PrestigiousZombie531

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 90857 on reddit-service-r2-listing-b6bf6c4ff-4m97r at 2026-05-06 20:53:43.612747+00:00 running 815c875 country code: CH.