Jellie Frontier
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 8 days ago

An awkward realization

startrek.website

message-square
23
fedilink
302

An awkward realization

startrek.website

MalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 8 days ago
message-square
23
fedilink
alert-triangle
You must log in or register to comment.
  • Doomsider@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    7 days ago

    My five thousand line bash script can do things that one hundred thousand lines of code could not do.

    On the brightside, at least script monkeys can now look down on vibe coders.

  • otacon239@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    8 days ago

    I used awk for the first time today to find all the MD5 sums that matched an old file I had to get rid of. Still have no idea what awk was needed for. 😅 All my programming skill is in Python. Linux syntax is a weak point of mine.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      8 days ago

      Probably the very same thing that the post talks about, which is extracting the first word of a line of text.

      The output of md5sum looks like this:

      > md5sum test.txt
      a3cca2b2aa1e3b5b3b5aad99a8529074 test.txt
      

      So, it lists the checksum and then the file name, but you wanted just the checksum.

  • DreamButt@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    8 days ago

    In all my years I’ve only used more than that a handful of times. Just don’t need it really

    Now jq on the other hand…

    • harsh3466@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      8 days ago

      jq is indispensable

  • CubitOom@infosec.pub
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    edit-2
    8 days ago

    I’ve become a person that uses awk instead of grep, sed, cut, head, tail, cat, perl, or bashisms

    • MalikMuaddibSoong@startrek.websiteOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      8 days ago

      sort | uniq -c has entered the chat 🤣

    • poinck@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      7 days ago

      I rather do ${line%% *} and avoid awk.

  • Delilah (She/Her)@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    10
    ·
    8 days ago

    Honestly I think 90% of people would never use awk if there was a simple preinstalled command for “print the nth column”

    • Laurel Raven@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      7 days ago

      This is definitely somewhere that PowerShell shines, all of that is built in and really easy to use

  • UltraBlack@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    8 days ago

    All my homies use dubious regex

  • pelya@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    8 days ago

    Everything you do with awk, you can do with python, and it will also be readable.

    • NaibofTabr@infosec.pub
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      7 days ago

      Hmm, but you have to install and run the Python environment for that. AWK is typically present on *NIX systems already. Python seem like overkill for basic text processing tasks.

      • pelya@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        7 days ago

        On Debian the python is preinstalled.

  • neuracnu@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    8 days ago

    10 PRINT BUTTS

    20 GOTO 10

  • expr@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    7 days ago

    cut -d ' ' -f1 master race

  • someguy3@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    8 days ago

    What’s an awk?

    • This is fine🔥🐶☕🔥@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      8 days ago

      'awk tuah

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      11
      ·
      8 days ago

      It’s a Linux command-line program (awk). It’s pre-installed practically everywhere, it’s very powerful for string processing, but it also uses a fairly complex syntax.

      As a result, not many people know how to really make use of it, but awk '{print $1}' is something you encounter fairly quickly when you need to get the first word in each line.

    • SendMePhotos@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      8 days ago

      awk yeah

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    7 days ago

    joke so dark I had to turn up my screen brightness to enjoy it.

  • grandma@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    7 days ago

    Nushell enjoyers represent

  • mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    8 days ago

    – [x] I’m in this picture and don’t like it.

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.
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.

  • 55 users / day
  • 1.64K users / week
  • 3.97K users / month
  • 11.3K users / 6 months
  • 1 local subscriber
  • 27.3K subscribers
  • 809 Posts
  • 11K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org