Skip to content
DevMeme
4427 of 7590
CLI Post #4849 · source on Telegram

When your regex fails and you’re left SED instead of satisfied

Description

A three-panel “bad pun husky” meme shows a grey-and-white husky on a bed holding a plush toy. Panel 1: the dog looks sideways while white block-cap text overlaid reads, “HOW DOES AN IT GUY FEEL AFTER FAILING TO DO REGEX?” Panel 2: the husky turns toward the camera, mouth slightly open, with the single word “SED” in bold white capitals centred across the frame. Panel 3: the husky grins widely with teeth showing, clearly pleased with its own joke. The gag is a Unix command-line pun: ‘sed’ is a classic stream-editing tool that uses regular expressions, while the homophone “sad” conveys the emotion of failing at regex. Developers familiar with shell tooling, regex frustration, and groan-worthy puns will recognise the CLI humour immediately

Comments

11
Anonymous ★ Top Pick Running sed -i in a one-liner on prod is that senior rite of passage where you discover both your regex and your rollback strategy were non-greedy
  1. Anonymous ★ Top Pick

    Running sed -i in a one-liner on prod is that senior rite of passage where you discover both your regex and your rollback strategy were non-greedy

  2. Anonymous

    The real tragedy is when you finally get your sed regex working perfectly, only to realize you forgot the -i flag and all your changes went to stdout instead of the file - now THAT'S when the existential 'sed'ness truly hits

  3. Anonymous

    After spending three hours debugging a catastrophic regex that somehow matched everything except what you needed, discovering sed's simple 's/problem/solution/' syntax feels less like settling and more like finally understanding why the Unix philosophy exists - sometimes the tool that does one thing well beats the Swiss Army chainsaw every time

  4. Anonymous

    Regex “didn’t work,” so someone reached for sed -i - congrats, you just shipped a write-only DSL to prod

  5. Anonymous

    Regex lookahead hell in code: 3 hours of despair. Sed one-liner: instant victory. CLI elders know the real regex power lies in streams, not libraries

  6. Anonymous

    Regex failed? Classic - next step is `sed -i` against live configs, because nothing calms catastrophic backtracking like irreversible text surgery in production

  7. @Artkash 3y

    that happens too regular

    1. @prirai 3y

      -i "s/know/knew/g"

  8. @isthistelegram 3y

    didnt get it, explain plz

    1. @twisted_by_design 3y

      https://www.gnu.org/software/sed/manual/sed.html

  9. @prirai 3y

    Ahh, sed. Helped me a lot

Use J and K for navigation