criticalbasics
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 6 months ago

cat posttitle.txt | grep meme

lemmy.world

message-square
23
link
fedilink
177

cat posttitle.txt | grep meme

lemmy.world

alias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 6 months ago
message-square
23
link
fedilink
alert-triangle
You must log in or # to comment.
  • UltraHamster64@lemmy.world
    link
    fedilink
    arrow-up
    33
    ·
    6 months ago

    I heard one popular glorp youtuber say “Only glorp hemptets ship into mleb” Bitch I ship into blep all I fucking want, it’s more readable, and I piss whenever I fucking can. I piss two pisses before I piss two pisses, and then I piss more

    Yes I know putting two pisses in a row will break your bone. I’ve done it several times before by accident.

    implying I give a fuck

    • Gonzako@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      Cat outputs your files text and grep searches though that output for occurrences of whatever you feed it. This thing of passing one commands output to another is called piping.

  • Atlas_@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    6 months ago

    You can actually change the functionality of some punctuation, such as is used in my favorite command

    :()::;:

    • Molten_Moron@lemmings.world
      link
      fedilink
      arrow-up
      21
      ·
      6 months ago

      What the fork does this even do?

    • plyth@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago
      :(){:|:};:
      
  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    6 months ago

    Cat into grep lets you insert something between the file read and grep if you need to without having to reorder anything

  • exu@feditown.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    6 months ago

    I prefer | less or less file.txt because I can search interactively

    • dream_weasel@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      ·
      6 months ago

      This is just big small trying to sell more less, obviously.

    • somerandomperson@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      6
      ·
      6 months ago

      what about $EDITOR <(cat file)?

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        6 months ago

        Well, when I can just do $EDITOR file…

        • somerandomperson@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          3
          ·
          6 months ago

          we’re talking about a pipeline(-ish) thing here.
          so just out the cmd that you want to read the output of in the brackets

        • jayands@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          6 months ago

          The subtle difference is that your $SHELL is responsible for opening (and, iirc, parsing?) the file when you use \<, versus the $EDITOR being the responsible entity.

          • ulterno@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            6 months ago

            Oh I get it now.
            Also, for some reason setting vi as $EDITOR, it is not able to load the contents of the file, unlike vim that does.

  • Gray_Warden@mander.xyz
    link
    fedilink
    arrow-up
    6
    ·
    6 months ago

    I understood a couple of those words. None of the technical ones, but some of them! They were expletives… But I understood them!

  • radiouser@crazypeople.online
    link
    fedilink
    arrow-up
    5
    ·
    6 months ago

    Looks like people didn’t get the Sublime reference.

    • 9488fcea02a9@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      Wowwwww… cant believe i missed it. Thanks

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 months ago

        What’s the reference? For someone that doesn’t use sublime

        • 9488fcea02a9@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          5 months ago

          Sublime - Smoke Two Joints

          It’s a song. Go have a listen on whatever music service you use

          • ulterno@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            5 months ago

            Oh. I though it was about Sublime Text somehow.
            But thanks to you, the title explains it and I don’t need to listen to the song.

    • ranzispa@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      They all too high

  • n3on_Navigat0r@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    4
    ·
    6 months ago

    Do you pipe two pipes in times of peace, and two in times of war?

  • AeonFelis@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago
    • Write programs that do one thing and do it well.
    • Write programs to work together.
    • Write programs to handle text streams, because that is a universal interface.

    I guess none of these apply when reading files is involved?

  • Skullgrid@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    just gotta tee

linuxmemes@lemmy.world

linuxmemes@lemmy.world

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: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don’t come looking for advice, this is not the right community.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
globe

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

  • 278 users / day
  • 994 users / week
  • 3.05K users / month
  • 9.73K users / 6 months
  • 1 local subscriber
  • 31.6K subscribers
  • 2.11K Posts
  • 74.9K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org