• flambonkscious@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    11
    ·
    14 hours ago

    But they’re integers not strings, so are sorted differently…

    I’m sorry if your head treats them as strings but that’s like, a you problem, man…

    • wheezy@lemmy.ml
      link
      fedilink
      English
      arrow-up
      22
      arrow-down
      1
      ·
      edit-2
      14 hours ago

      Welcome to the thread. It’s something that annoys me in which I asked if it annoyed anyone else. I’m not sure why you’re trying to explain away my annoyance with information I already know.

      Also, filenames are quite literally strings. That’s how the image binaries will be sorted. As filenames.

      release_1.1.bin
      release_1.10.bin
      release_1.2.bin
      

      And yes I’m aware of sort -V. I can still have an OCD annoyance with it. I swear to God if someone replies again telling me why I shouldn’t be annoyed.

      At this point I’m more annoyed with replies than I was version numbers.

      • Alberat@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        11 hours ago

        for f in $(find /); do mv $f $(echo $f | sed ‘s/.([0-9])./.0\1./’; done

        ftfy

        edit: dont actually run that

            • wheezy@lemmy.ml
              link
              fedilink
              English
              arrow-up
              7
              ·
              14 hours ago

              ls | sort -V now that I’ve cursed you.

              But I’m running out of mental storage space for bash commands. I wish I could clear some space.

                • wheezy@lemmy.ml
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  5 hours ago

                  What’s worse is making a bunch of bash aliases that are easier to remember and then you hit an environment you can’t use your bashrc in for whatever reason. Then you have no idea how to actually do anything.

                  I try to only use aliases for things that I repeat often but are only going to be used in my specific environment.

                  Unless you mean

                  alias ls="ls | sort -V"
                  

                  Which would be really awful to do for obvious reasons.

                  • everett@lemmy.ml
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    edit-2
                    4 hours ago

                    That example is indeed what I meant. What’s awful about it?

                    edit: I use a customized ls alias. Most of the time it’s fine, and when I occasionally need the default output, I can type /bin/ls, no new alias to memorize. The history command suggests I do this pretty infrequently, though ymmv.