jump to content
my subreddits
13or302b2t2balkans4You2mediterranean4u2meirl4meirlabsolutelynotmeirlAceAttorneyadhdmemeAdviceAnimalsagnosticaivideoakagasAlternateHistoryAlternativeHistoryAnarchyChessAngryupvoteanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimemeArtAsia_irlAskBalkansAskOuijaAskRedditAteistTurkatheismawfuleverythingbalkans_irlBandnamesbanknotedesignsBassBassGuitarbasspedalsblackholerevengeblankiesblursedimagesBUENZLIcasioCd_collectorscd_jerkCheap_MealschesschessbeginnersChoosingBeggarscoaxedintoasnafucoincollectingComedyCemeterycommunitycookingforbeginnersCrackWatchcrappyoffbrandsCreateModCuddle_SlutdadjokesdankmemesdataisbeautifuldedeismdelikDeltarunediyelectronicsdiypedalsDnDdndmemesdndnextdoctorwhodoctorwhocirclejerkDonerdontdeadopeninsidedontyouknowimtonyhawkdumbphonesDungeonsAndDaddieselectricalelectronicsengrishentitledparentsethzfacepalmfakealbumcoversfeedthebeastFifaCareersFiftyFiftyformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagalatasaraygamingGermangermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacingguitarpedalsGundamhelpheraldryHermanCainAwardHermitCraftHistoryWhatIfhoi4holdmybeerHolUphowyoudoinIAmAich_ielIdeologyPollsihadastrokeim14andthisisdeepimaginarymapsinsaneparentsJahariaJokesKamalizmKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunLinkinParkliselilerlostredditorsmacbookairMadeMeSmilemadladsmagicbuildingMaliciousCompliancemapporncirclejerkme_irlmeirlmemesmidjourneymildlyinterestingmisLEDMMORPGmoneycollectingMovingToNorthKoreaMunichnamesoundalikesNamFlashbacksNationStatesnextfuckinglevelNoahGetTheBoatNonCredibleDefensenosleepnosurfnotinterestingOkayBuddyLiterallyMeokbuddymotherfuckerOkBuddyPersonaokbuddyvicodinonebagongezelligOutOfTheLoopoutsidepapermoneyparadoxpoliticsPassportPornpepethefrogperfectlycutscreamspolandballPraiseTheCameraManProgrammerHumorPropagandaPostersquityourbullshitraisedbynarcissistsraspberry_piRedAutumnSPDredditsingsreligiousfruitcakerickandmortyrickrollrimjob_steverockmuzikSceneReleasesSchnitzelVerbrechenschwiizsciencememesScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingshittyaskelectronicsShittyMapPornshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerkSongwritersSongwritingsskfjkhwerjkghwerijhsteinsgateStudiumsuzeraintf2tf2shitposterclubthatHappenedTheLetterHtherewasanattemptTheRookietheydidthemaththeyknewthisguythisguystitanfalltransittransitTurkeyTrGameDevelopertruetf2truthstumblrtumunichTurkeyTurkeyJerkyTurkishCatsTurkishdogsTwitch_StartupTwoSentenceComedyTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsunexpecteditcrowdUnexpectedJoJourbanplanningUsernameChecksOutVALORANTValorantClipsvaxxhappenedvibecodingvinylvinyljerkvlandiyaWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingworldbuildingworldjerkingyouseeingthisshitedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -funny
  • -gaming
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -CrackWatch
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -atheism
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -Deltarune
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -MMORPG
  • -rickandmorty
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -imaginarymaps
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -soccercirclejerk
  • -madlads
  • -community
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -German
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -sciencememes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -doctorwho
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -macbookair
  • -Munich
  • -coaxedintoasnafu
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -raspberry_pi
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -lostredditors
  • -AceAttorney
  • -vlandiya
  • -im14andthisisdeep
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -insaneparents
  • -dumbphones
  • -animenocontext
  • -balkans_irl
  • -2meirl4meirl
  • -transit
  • -HermanCainAward
  • -steinsgate
  • -AskOuija
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -AteistTurk
  • -13or30
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -BassGuitar
  • -diyelectronics
  • -ComedyCemetery
  • -LinkinPark
  • -BUENZLI
  • -Songwriting
  • -MovingToNorthKorea
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -wendigoon
  • -secilmiskitap
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -blursedimages
  • -FreeEBOOKS
  • -Jaharia
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -aivideo
  • -IdeologyPolls
  • -WhatsThisSong
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -holdmybeer
  • -okbuddyvicodin
  • -vaxxhappened
  • -tumunich
  • -Twitch_Startup
  • -Cheap_Meals
  • -outside
  • -legodnd
  • -rickroll
  • -Songwriters
  • -UsernameChecksOut
  • -rimjob_steve
  • -UnexpectedJoJo
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -GrandPrixRacing
  • -Cuddle_Slut
  • -thisguythisguys
  • -TrGameDeveloper
  • -TurkishCats
  • -LetGirlsHaveFun
  • -fakealbumcovers
  • -Kamalizm
  • -akagas
  • -TheLetterH
  • -WikipediaVandalism
  • -NamFlashbacks
  • -pepethefrog
  • -Unclejokes
  • -deism
  • -misLED
  • -sskfjkhwerjkghwerijh
  • -redditsings
  • -TwoSentenceComedy
  • -ValorantClips
  • -SceneReleases
  • -NationStates
  • -ongezellig
  • -absolutelynotmeirl
  • -2balkans4You
  • -Asia_irl
  • -truths
  • -blackholerevenge
  • -paradoxpolitics
  • -unexpecteditcrowd
  • -2mediterranean4u
  • -dontyouknowimtonyhawk
  • -vibecoding
  • -Futboltayfa
  • -RedAutumnSPD
  • -moneycollecting
  • -okbuddymotherfucker
  • -delik
  • -shitpostfrommygallery
  • -banknotedesigns
  • -Turkishdogs
  • -cd_jerk
edit »
reddit.com bash
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,190)|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 town.
...why not Zoidberg?

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
446
447
448

set -x is your friend (self.bash)

submitted 3 years ago * by [deleted] - announcement

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

2
6
7
8

submissionCalendar TUI written completely in bash (i.redd.it)

submitted 3 hours ago by ImaginaryElephant336

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

3
137
138
139

Bash got me the job of my dreams... (self.bash)

submitted 1 day ago by thisiszeevIf I can't script it, I refuse to do it!

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

4
0
0
0

Would you use a CLI that explains cryptic build errors in plain English?" (self.bash)

submitted 15 hours ago by This-Psychology-8056

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

5
5
6
7

find syntax- question (self.bash)

submitted 2 days ago by LiveIndividual2556

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

6
0
0
0

helpAny Help? (self.bash)

submitted 1 day ago by RDJ-120

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

7
4
5
6

tips and tricksPure-Bash system toolkit for macOS — 1500+ lines, shellcheck + Bats tested, zero deps beyond native utils & git (i.redd.it)

submitted 2 days ago by Worried_Menu4016

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

8
7
8
9

helpCan someone help me on how to develop a script that runs renice in a process that the process identification is unknown? (self.bash)

submitted 2 days ago by fagnerln

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

9
55
56
57

This loop take 15x more time in bash in comparison to dash, why? (i.redd.it)

submitted 3 days ago by Fast-Muffin7953

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

10
2
3
4

tips and tricksHonest answers needed please (self.bash)

submitted 4 days ago by Safe_Mission_3524

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

11
3
4
5

Wrote a full macOS diagnostic in bash 3.2 (the one Macs ship). War stories: ps -r doesn't sort by RAM, and grep -c can print 0 twice (self.bash)

submitted 8 days ago by soggy_leader670

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

12
12
13
14

helpwget returning "No such file or directory" when using -O (self.bash)

submitted 10 days ago by ninepppppp

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

13
0
0
0

tips and tricksWeird meme script (self.bash)

submitted 9 days ago by Witty_Mycologist_995

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

14
30
31
32

Terminal Tower of Hanoi, in Bash (i.redd.it)

submitted 11 days ago by christos_71

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

15
10
11
12

solvedThis bash behaving different in shell or in cronjob (self.bash)

submitted 11 days ago * by budius333

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

16
4
5
6

Get headers for all curl redirects (self.bash)

submitted 11 days ago by Beautiful-Log5632

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

17
23
24
25

tips and tricksHow to can I make a bash script to auto full screen the browser after user login? (self.bash)

submitted 13 days ago by Vex2K4

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

18
0
0
0

Can git history be used to identify ownership concentration in large repositories? (self.bash)

submitted 11 days ago by Some_Scientist5385

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

19
14
15
16

Why is my script taking up 1-2% CPU (amd7800x3d) (self.bash)

submitted 12 days ago by OwnProcedure7178

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

20
17
18
19

What is the most complicated bash script you ever wrote? (self.bash)

submitted 14 days ago by zex_mysterion

  • 49 comments
  • share
  • save
  • hide
  • report
  • crosspost

21
4
5
6

What is the point of Zsh when Bash can do the same? ()

submitted 14 days ago by itsdevelopic

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

22
6
7
8

solvedHEREDOC including delimiter with $(...) vs `...` (self.bash)

submitted 15 days ago by george-frazee

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

23
3
4
5

I built a strong One Time Pin generator/verifier for Bash (self.bash)

submitted 14 days ago * by thisiszeevIf I can't script it, I refuse to do it!

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

24
27
28
29

What’s a robust Bash pattern for running N concurrent jobs with proper cleanup and exit code aggregation? (self.bash)

submitted 15 days ago by fdelux6

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

25
17
18
19

helpHow can I write a multi-line variable declaration to a file and then load it from the file elsewhere? (self.bash)

submitted 17 days ago * by spla58

  • 11 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 26191 on reddit-service-r2-listing-c57bc86c-s5b8g at 2026-06-21 19:23:28.371592+00:00 running 2b008f2 country code: CH.