This doesn't cut it
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 1 month ago

Linux Users

lemmy.ml

message-square
140
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
1.29K

Linux Users

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 1 month ago
message-square
140
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • echindod@programming.dev
    link
    fedilink
    arrow-up
    16
    ·
    1 month ago

    Useless use of cat?

    • disobey2623@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      You saying I can just skip cat in that command and it works?

      • x00z@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 month ago

        history | grep 'cat'

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          My output was empty for that command.

          Guess why?
          Because history only gives the last few lines in my system.

      • neox_@sh.itjust.works
        link
        fedilink
        Français
        arrow-up
        5
        ·
        1 month ago
        grep ~/.bash_history
        
        • disobey2623@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          4
          ·
          1 month ago

          How did I not know this. Thank you!

          • oozynozh@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            1 month ago

            it’s grep STRING FILE to be precise

            or awk '/STRING/′ FILE if you prefer that for some reason

    • Hammerheart@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      Yes, it was meant to be a self deprecating admission that I have used this unnecessarily verbose command.

      • echindod@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        Ah. Well. I can not be blameless on this. I also probably use cat unnecessarily still. But less so with grep these days. I’m getting better… I swear!

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.56K users / day
  • 4.48K users / week
  • 9.66K users / month
  • 19.3K users / 6 months
  • 1 local subscriber
  • 27.1K subscribers
  • 1.3K Posts
  • 33.7K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org