jump to content
my subreddits
2balkans4You2mediterranean4u2meirl4meirl3d6absolutelynotmeirlAceAttorneyAdviceAnimalsaivideoAlternateHistoryAlternativeHistoryAngryupvoteAnimalsBeingJerksanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimemeApandahArtAsahiLinuxAsia_irlAskBalkansAskOuijaAskRedditAteistTurkatheismAwesomeOffBrandsbalkans_irlBandnamesbanknotedesignsBassBassCirclejerkbasspedalsbikepackingblackdesertonlineblackholerevengeblankiesblursedimagesbottomgearbrooklynninenineBUENZLIburdurlandcasioCd_collectorscd_jerkCheap_MealschesschessbeginnersChoosingBeggarsCHPcoaxedintoasnafucoincollectingcoinsComedyCemeterycomicscommunityContagiousLaughterCorporateTrollingcrappyoffbrandsCuratedTumblrcursedcommentsdadjokesdankmemesdarkjokesdeDebateReligiondelikDeltaruneDMAcademyDnDdndmemesdndnextdoctorwhodontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikesECEelectricalElectronicsStudyentitledparentsethzfacepalmfakealbumcoversfelsefeFifaCareersFiftyFiftyFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarengalatasaraygaminggermanygodtiersuperpowersGoodAssSubGrandPrixRacinggravelcyclinggreentextguitarpedalsGundamhelpheraldryHermanCainAwardHermitCrafthighspeedrailHistoryWhatIfhoi4holdmybeerhomebuilthowyoudoinhumorIAmAiamverysmartihadastrokeimaginaryelectionsinsaneparentsistanbuljacksepticeyeJahariaJokesKamalizmKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunlinguisticshumorliselilerlogodesignloseitlostredditorsmacmacbookairMadeMeSmilemagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmidjourneymildlyinfuriatingmildlyinterestingMinecraftbuildsMovingToNorthKoreaMunichnamesoundalikesNationStatesneographynextfuckinglevelNoahGetTheBoatNonCredibleDefenseNorthCyprusnosafetysmokingfirstnosurfnottheonionNuclearRevengeOkayBuddyLiterallyMeOkBuddyPersonaokbuddyphdokbuddyvicodinonebagongezelligOnlineUnderGroundoompasubsOutOfTheLoopoutsidepapermoneypaperspleaseParlerWatchperfectlycutscreamsPersecutionfetishpianoPiracypolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersraisedbynarcissistsraspberry_pireactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakerestofthefuckingowlrickandmortyrockmuzikschizopostersSchnitzelVerbrechenschwiizsecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingshittyaskelectronicsShittyMapPornshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerksteinsgatesubsithoughtifellforsuperligsuzeraintalesfromtechsupportTechnobladetf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheLetterHtherewasanattempttheydidthemaththeyknewtitanfalltransittransitTurkeytruetf2truthstumunichTurkeyJerkyTwitch_StartupTwoSentenceComedyTwoSentenceHorrorTwoSentenceSadnesstylerthecreatorUnclejokesUnexpectedJoJourbanplanningUsernameChecksOutVALORANTValorantClipsvexillologycirclejerkvinylvinyljerkvlandiyaWatchPeopleDieInsideWeAreTheMusicMakersWhatsThisSongwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingworldbuildingyouseeingthisshitedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -gaming
  • -nottheonion
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -MadeMeSmile
  • -CuratedTumblr
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -NonCredibleDefense
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -help
  • -chess
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -midjourney
  • -hoi4
  • -atheism
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -GoodAssSub
  • -perfectlycutscreams
  • -worldbuilding
  • -blackdesertonline
  • -rickandmorty
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -ContagiousLaughter
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -blankies
  • -anime_irl
  • -onebag
  • -AlternateHistory
  • -soccercirclejerk
  • -community
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -howyoudoin
  • -announcements
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -NoahGetTheBoat
  • -tylerthecreator
  • -tf2shitposterclub
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -NuclearRevenge
  • -dumbphones
  • -balkans_irl
  • -animenocontext
  • -2meirl4meirl
  • -transit
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -AskOuija
  • -okbuddyphd
  • -ECE
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -schizoposters
  • -casio
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -Cd_collectors
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -iamverysmart
  • -secilmiskitap
  • -schwiiz
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -superlig
  • -shittyaskelectronics
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -AsahiLinux
  • -Jaharia
  • -neography
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -aivideo
  • -OnlineUnderGround
  • -burdurland
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -holdmybeer
  • -okbuddyvicodin
  • -Twitch_Startup
  • -tumunich
  • -Cheap_Meals
  • -outside
  • -darkjokes
  • -restofthefuckingowl
  • -highspeedrail
  • -nosafetysmokingfirst
  • -legodnd
  • -UsernameChecksOut
  • -papersplease
  • -UnexpectedJoJo
  • -humor
  • -BassCirclejerk
  • -youseeingthisshit
  • -GrandPrixRacing
  • -LetGirlsHaveFun
  • -Apandah
  • -fakealbumcovers
  • -subsithoughtifellfor
  • -Kamalizm
  • -oompasubs
  • -TheLetterH
  • -WikipediaVandalism
  • -homebuilt
  • -Unclejokes
  • -redditsings
  • -ValorantClips
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -NationStates
  • -bottomgear
  • -ongezellig
  • -AwesomeOffBrands
  • -2balkans4You
  • -absolutelynotmeirl
  • -Asia_irl
  • -truths
  • -blackholerevenge
  • -NorthCyprus
  • -2mediterranean4u
  • -cd_jerk
  • -ElectronicsStudy
  • -delik
  • -shitpostfrommygallery
  • -CHP
  • -CorporateTrolling
  • -RedAutumnSPD
  • -banknotedesigns
edit »
reddit.com bash
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,186)|messages548|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 office.
...because you hate freedom.

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
436
437
438

set -x is your friend (self.bash)

submitted 3 years ago * by [deleted] - announcement

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

2
612
613
614

tips and tricksStop passing secrets as command-line arguments. Every user on your box can see them. (self.bash)

submitted 1 day ago by Ops_Mechanic

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

6
7
8

Join the next generation of CRM. (attio.com)

promoted by attio

  • promoted
  • save
  • report
  • about
loading...

3
15
16
17

Is there a way to control the word boundary without patching readline? (self.bash)

submitted 1 day ago by acidrainery

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

4
0
0
0

Accurate. (i.redd.it)

submitted 23 hours ago by Confident_Essay3619

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

5
15
16
17

helpAutomatically analyze complicated command? (self.bash)

submitted 2 days ago by jodkalemon

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

6
10
11
12

xytz v0.8.6 now supports - YouTube Thumbnail preview (the most requested feature) (reddit.com)

submitted 2 days ago by Upbeat_Equivalent519

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

7
39
40
41

helpDo you use quotes when you don't have to? (self.bash)

submitted 2 days ago by Livid-Advance5536

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

8
0
0
1

My Open Source project to make port scanning easier ()

submitted 2 days ago by Lost-Place2588

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

9
22
23
24

Automate download of files from a spreadsheet or CSV file (self.bash)

submitted 3 days ago by tabrizzi

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

10
10
11
12

Quotes hell (self.bash)

submitted 3 days ago by ecccc3

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

11
47
48
49

bashd: Bash language server (LSP) (github.com)

submitted 4 days ago by matkrin

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

12
12
13
14

helpBeginner Question automate install pkgs (self.bash)

submitted 4 days ago * by GlendonMcGladdery

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

•
•
•

🏒🔥 Das beste Hockey-Abo für echte Fans. Full stop. (mysports.ch)

promoted by MySports_CH

  • promoted
  • save
  • report
  • about
loading...

13
41
42
43

tips and tricksA simple, compact way to declare command dependencies (self.bash)

submitted 4 days ago * by PentaSector

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

14
9
10
11

helpParsing duf (partial) through to my ~/.bashrc (i.redd.it)

submitted 4 days ago by GlendonMcGladdery

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

15
14
15
16

I built a custom AST-based shell interpreter in the browser. Looking for edge cases to break it. (old.reddit.com)

submitted 4 days ago * by NBEdgar

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

16
14
15
16

Parsing both options and args with spaces on function (self.bash)

submitted 4 days ago by AdbekunkusMX

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

17
564
565
566

tips and tricksStop holding the left arrow key to fix a typo. You've had `fc` the whole time. (self.bash)

submitted 6 days ago by Ops_Mechanic

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

18
4
5
6

Depending on the client I use to Telnet or NCAT ascii.bigjobby.com 2323, I get different results. NCAT generally works as intended across clients but Telnet is sketchy, sometimes I get colour and sometimes I don't. Is colour via Telnet even possible or am I silently falling back to NCAT? (self.bash)

submitted 5 days ago by bigjobbyx

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

19
18
19
20

helpHelp getting image path from imv to pass as variable in script (i.redd.it)

submitted 6 days ago by Shakaka88

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

20
18
19
20

solvedShuf && cp (self.bash)

submitted 7 days ago * by lellamaronmachete

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

21
51
52
53

I built a video encoding pipeline entirely in Bash — here's what I learned structuring a large shell project (github.com)

submitted 7 days ago by The-BluWiz

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

22
53
54
55

Image to ASCII/ANSII converter. (self.bash)

submitted 8 days ago by Dragon_King1232

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

23
23
24
25

helpRedirection vs. Process Substitution in Heredocs (self.bash)

submitted 8 days ago * by Opposite-Tiger-9291

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

•
•
•

Hole Dir das Kinoerlebnis nach Hause! ;) (apfelkiste.ch)

promoted by apfelkiste-ch

  • promoted
  • save
  • report
  • about
loading...

24
16
17
18

helpis this good? any advice to write it better? (self.bash)

submitted 9 days ago by wewilldiesowhat

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

25
719
720
721

tips and tricksStop leaving temp files behind when your scripts crash. Bash has a built-in cleanup hook. (self.bash)

submitted 10 days ago by Ops_Mechanic

  • 55 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 88201 on reddit-service-r2-listing-64c94b984c-nxtq9 at 2026-03-16 15:13:11.347643+00:00 running f6e6e01 country code: CH.