• Re: SSD prices (was Re: “5 MacOS command line tools I swear by over their GUI counterparts”)

    From chrisv@chrisv@nospam.invalid to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 15:36:32 2026
    From Newsgroup: comp.sys.mac.advocacy

    CrudeSausage wrote:

    John Bokma wrote:

    Soon SSD is luxury ;-).

    Let's hope not.

    I _just_ missed the ridiculous price increases when I bought my 2 TB
    Samsung 990 EVO for $175 CAD last year. The price has doubled since. The
    way things are going, I will probably just wait for my laptop to
    completely die before I replace it.

    With the Alder Lake and Raptor Lake PC's that I built in the last few
    years, I'm good for another five years or more.

    Video card prices are actually still OK. I suppose because fewer new
    gaming PC's are being built.
    --
    "One [jpeg] was quickly replaced once I noted the EXIF data." - the
    "Snit" thing, lying shamelessly (but no one can quote it lying)
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 21:45:20 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 05 May 2026 13:54:10 GMT, Brock McNuggets wrote:

    One thing I like about macOS is the level of choice. A UNIX CLI with
    a world class GUI.

    Only one?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 21:46:05 2026
    From Newsgroup: comp.sys.mac.advocacy

    On Tue, 5 May 2026 17:37:37 +0200, John Bokma wrote:

    On 05/05/2026 02:54, Lawrence D’Oliveiro wrote:

    Are Mac users really brave enough to try command-line tools?

    Of course. Projects like homebrew and Mac Ports show that there is a
    serious interest in cli tools for macOS. Also Nix provides a huge
    number of packages for macOS.

    Do they all offer the same packages? Or do you need to install more
    than one to get the full range?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From chrisv@chrisv@nospam.invalid to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 17:02:06 2026
    From Newsgroup: comp.sys.mac.advocacy

    Lawrence D˙Oliveiro wrote:

    some thing wrote:

    One thing I like about macOS is the level of choice. A UNIX CLI with
    a world class GUI.

    Only one?

    Only one is needed, for everyone on the planet, according to that
    thing. Everyone from toddlers to computer experts, and from office
    workers to scientists.

    That thing is as stupid as it is dishonest.
    --
    "That is not a gain from a diversity of UIs. A single well designed
    GUI would serve all of the GUI needs just fine." - some thing
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 22:18:40 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 05 May 2026 17:50:08 GMT, Brock McNuggets wrote:

    On May 5, 2026 at 10:32:05 AM MST, "John Bokma" wrote <10td9im$jmc1$1@dont-email.me>:

    One can (almost) always install the same command on macOS.

    True... but Linux comes with more. There are also different flags
    and it is usually easier to find Linux info.

    Most Linux systems use the GNU tools, as Richard Stallman never tires
    of reminding us ;).

    Back in the days when “Unix” meant something, it was quite common for sysadmins, when setting up a Unix workstation or server for the first
    time, to immediately install a bunch of the GNU tools, and use them in preference to the vendor-provided equivalents. The GNU versions were
    usually less buggy, more featureful, and also often more
    standards-compliant.

    So you could say that Apple’s “Unix” continues this tradition ...
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 22:37:34 2026
    From Newsgroup: comp.sys.mac.advocacy

    On Tue, 5 May 2026 20:04:19 +0200, John Bokma wrote:

    If you install GNU commands you have to prefix them with g, e.g.
    gfind, gls, ggrep.

    If you do that, is there a chance you could cause conflicts with
    scripts that rely on the Apple-provided utilities by that name?

    If you don’t do that, how do you exchange compatible scripts with
    Linux systems, or even BSD ones?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CrudeSausage@crude@sausa.ge to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 18:45:27 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-05 4:36 p.m., chrisv wrote:
    CrudeSausage wrote:

    John Bokma wrote:

    Soon SSD is luxury ;-).

    Let's hope not.

    I _just_ missed the ridiculous price increases when I bought my 2 TB
    Samsung 990 EVO for $175 CAD last year. The price has doubled since. The
    way things are going, I will probably just wait for my laptop to
    completely die before I replace it.

    With the Alder Lake and Raptor Lake PC's that I built in the last few
    years, I'm good for another five years or more.

    Video card prices are actually still OK. I suppose because fewer new
    gaming PC's are being built.

    I notice that gaming laptops are not yet prohibitively expensive. Anal
    pointed out that the new edition of the Zephyrus G14, a machine I would
    have preferred, is now at $4,299 CAD. However, machines with an RTX
    5060, the natural evolution from my RTX 3060, can be acquired in the $1,500-2,500 range. I'm getting the feeling that RAM and storage prices
    aren't affecting manufacturers the way they are individuals. Either
    that, or those machines are all complete garbage despite the good
    reviews they've gotten.
    --
    CrudeSausage
    M4 MacBook Air
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Brock McNuggets@brock.mcnuggets@gmail.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 22:48:47 2026
    From Newsgroup: comp.sys.mac.advocacy

    On May 5, 2026 at 3:18:40 PM MST, "Lawrence D´Oliveiro" wrote <10tdqc0$ovr0$2@dont-email.me>:

    On 05 May 2026 17:50:08 GMT, Brock McNuggets wrote:

    On May 5, 2026 at 10:32:05 AM MST, "John Bokma" wrote
    <10td9im$jmc1$1@dont-email.me>:

    One can (almost) always install the same command on macOS.

    True... but Linux comes with more. There are also different flags
    and it is usually easier to find Linux info.

    Most Linux systems use the GNU tools, as Richard Stallman never tires
    of reminding us ;).

    Back in the days when “Unix” meant something, it was quite common for sysadmins, when setting up a Unix workstation or server for the first
    time, to immediately install a bunch of the GNU tools, and use them in preference to the vendor-provided equivalents. The GNU versions were
    usually less buggy, more featureful, and also often more
    standards-compliant.

    So you could say that Apple’s “Unix” continues this tradition ...

    LOL! They work well enough for my very limited needs.

    Back in the day I used vi (pre vim) quite a bit. But that was LOOOOONG ago. I have long since forgotten most of what I knew about it.
    --
    It's impossible for someone who is at war with themselves to be at peace with you.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Brock McNuggets@brock.mcnuggets@gmail.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 5 23:00:28 2026
    From Newsgroup: comp.sys.mac.advocacy

    On May 5, 2026 at 2:45:20 PM MST, "Lawrence D´Oliveiro" wrote <10tdodf$oc5h$1@dont-email.me>:

    On 05 May 2026 13:54:10 GMT, Brock McNuggets wrote:

    One thing I like about macOS is the level of choice. A UNIX CLI with
    a world class GUI.

    Only one?

    Multiple shells... but it used to not have that. I wanted it for a long time, but cannot find any public stating of that before 1995. But from that year:

    <http://goo.gl/0wHM> Jul 18 1995 <3uh4b8$be3@news.nevada.edu>
    -----
    if DOS were a combo of UNIX and Mac it would be cool. I
    just wish we had something that combined the two. In theory
    that is the way both UNIX and Mac are growing
    -----

    <http://goo.gl/EDip> Jul 19 1995 <3ujt0s$535@news.nevada.edu>
    -----
    But UNIX does have some advantages over the Mac... a CLI
    would be a great addition to the Mac. I would say that
    between Mac and UNIX you have the best operating systems
    around.
    -----

    <http://goo.gl/vrLf> Aug 10 1995 <40d96e$7ke@news.nevada.edu>
    -----
    The Mac is not the end all in computer technology. Where it
    fails, UNIX excels. Between the two, there is almost no task
    that computers would be used for that can not be done. And
    one or the other will beat the competition in almost every
    area.
    -----

    In that last one I spoke of piping commands in a GUI. With Automator / Shortcuts, Apple does now have this to SOME extent. Would like to see that grow. They also have some of that with "Shortcuts" on iOS.
    --
    It's impossible for someone who is at war with themselves to be at peace with you.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 16:41:24 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 05/05/2026 23:46, Lawrence D’Oliveiro wrote:
    On Tue, 5 May 2026 17:37:37 +0200, John Bokma wrote:

    On 05/05/2026 02:54, Lawrence D’Oliveiro wrote:

    Are Mac users really brave enough to try command-line tools?

    Of course. Projects like homebrew and Mac Ports show that there is a
    serious interest in cli tools for macOS. Also Nix provides a huge
    number of packages for macOS.

    Do they all offer the same packages? Or do you need to install more
    than one to get the full range?

    I have no idea. Based on my experience homebrew is a safe bet: most open source I have seen has instructions on how to install via homebrew.

    In the near future I want to check out nix.
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 16:44:00 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 00:37, Lawrence D’Oliveiro wrote:
    On Tue, 5 May 2026 20:04:19 +0200, John Bokma wrote:

    If you install GNU commands you have to prefix them with g, e.g.
    gfind, gls, ggrep.

    If you do that, is there a chance you could cause conflicts with
    scripts that rely on the Apple-provided utilities by that name?

    Removing the prefix you mean? They overrule the Apple provided command
    line tools in that case, yes.

    If you don’t do that, how do you exchange compatible scripts with
    Linux systems, or even BSD ones?

    Apple uses the BSD ones. So if you want to write scripts for Linux *and*
    BSD and you want to use a feature not provided by the BSD (macOS)
    version of a command line program you have to find a work around.
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CrudeSausage@crude@sausa.ge to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 12:24:42 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 10:41 a.m., John Bokma wrote:
    On 05/05/2026 23:46, Lawrence D’Oliveiro wrote:
    On Tue, 5 May 2026 17:37:37 +0200, John Bokma wrote:

    On 05/05/2026 02:54, Lawrence D’Oliveiro wrote:

    Are Mac users really brave enough to try command-line tools?

    Of course. Projects like homebrew and Mac Ports show that there is a
    serious interest in cli tools for macOS. Also Nix provides a huge
    number of packages for macOS.

    Do they all offer the same packages? Or do you need to install more
    than one to get the full range?

    I have no idea. Based on my experience homebrew is a safe bet: most open source I have seen has instructions on how to install via homebrew.

    In the near future I want to check out nix.

    Prepare to be disappointed.
    --
    CrudeSausage
    2019 Thinkpad E595
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 18:27:37 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 18:24, CrudeSausage wrote:
    On 2026-05-06 10:41 a.m., John Bokma wrote:

    [..]

    In the near future I want to check out nix.

    Prepare to be disappointed.

    Why?[1]

    [1] I mean the package manager ;-)
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CrudeSausage@crude@sausa.ge to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 12:31:11 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 12:27 p.m., John Bokma wrote:
    On 06/05/2026 18:24, CrudeSausage wrote:
    On 2026-05-06 10:41 a.m., John Bokma wrote:

    [..]

    In the near future I want to check out nix.

    Prepare to be disappointed.

    Why?[1]

    [1] I mean the package manager ;-)

    Linux is filled with excellent ideas that simply aren't executed
    properly. Additionally, it has been conquered by the faggot community
    which pushes its narrative into the system rather than anything
    resembling improvements.
    --
    CrudeSausage
    2019 Thinkpad E595
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 18:45:32 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 18:31, CrudeSausage wrote:
    On 2026-05-06 12:27 p.m., John Bokma wrote:
    On 06/05/2026 18:24, CrudeSausage wrote:
    On 2026-05-06 10:41 a.m., John Bokma wrote:

    [..]

    In the near future I want to check out nix.

    Prepare to be disappointed.

    Why?[1]

    [1] I mean the package manager ;-)

    Linux is filled with excellent ideas that simply aren't executed
    properly.

    It's a package manager. Not Linux.
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CrudeSausage@crude@sausa.ge to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 12:56:35 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 12:45 p.m., John Bokma wrote:
    On 06/05/2026 18:31, CrudeSausage wrote:
    On 2026-05-06 12:27 p.m., John Bokma wrote:
    On 06/05/2026 18:24, CrudeSausage wrote:
    On 2026-05-06 10:41 a.m., John Bokma wrote:

    [..]

    In the near future I want to check out nix.

    Prepare to be disappointed.

    Why?[1]

    [1] I mean the package manager ;-)

    Linux is filled with excellent ideas that simply aren't executed
    properly.

    It's a package manager. Not Linux.


    The actual package manager is called nix?
    --
    CrudeSausage
    2019 Thinkpad E595
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 19:09:39 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 18:56, CrudeSausage wrote:

    The actual package manager is called nix?

    Yes. And the OS is called NixOS: <https://nixos.org/>
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 10:37:24 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-04 17:54, Lawrence D’Oliveiro wrote:
    Are Mac users really brave enough to try command-line tools?

    <https://www.zdnet.com/article/macos-command-line-utilities-that-are-far-more-useful-than-you-think/>

    All of them are available for Linux, and are probably easier to
    install and use there than on a Mac.

    Guess where the “real Unix” is to be found ...

    So I took a look at the article and it extolled the virtues of "ag"

    'The ag command allows you to search for strings within files. Even
    better, ag searches multiple files for the same string. Say you have a
    bunch of text files in your Documents directory and you need to know
    which of them contain ZDNET. The ag command will not only tell you which
    files contain the string, but it'll do it very quickly.'

    Sounds great, right? DEFINITELY something I need to have on macOS, right?

    Well...I DO have it. And actually, it's much better than ag.

    It's called "mdfind".

    I even used their example of searching for "zdnet", but I didn't search
    my Documents folder. I searched my entire drive.

    It took less than a second.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 19:52:16 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 19:37, Alan wrote:
    [..]
    Well...I DO have it. And actually, it's much better than ag.

    It's called "mdfind".

    While there is some overlap, they are very different tools.
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CrudeSausage@crude@sausa.ge to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 14:04:39 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 1:09 p.m., John Bokma wrote:
    On 06/05/2026 18:56, CrudeSausage wrote:

    The actual package manager is called nix?

    Yes. And the OS is called NixOS: <https://nixos.org/>

    And NixOS is not Linux?
    --
    CrudeSausage
    2019 Thinkpad E595
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CrudeSausage@crude@sausa.ge to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 14:05:17 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 1:09 p.m., John Bokma wrote:
    On 06/05/2026 18:56, CrudeSausage wrote:

    The actual package manager is called nix?

    Yes. And the OS is called NixOS: <https://nixos.org/>

    Literally from the NixOS.org page:

    "NixOS is a Linux distribution built around the Nix package manager."
    --
    CrudeSausage
    2019 Thinkpad E595
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 11:58:14 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 10:52, John Bokma wrote:
    On 06/05/2026 19:37, Alan wrote:
    [..]
    Well...I DO have it. And actually, it's much better than ag.

    It's called "mdfind".

    While there is some overlap, they are very different tools.


    They ARE different tools!

    But the one thing the article specifically highlights...

    ...is already done far, FAR better by mdfind.

    That's just a fact.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 21:57:27 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 20:58, Alan wrote:
    On 2026-05-06 10:52, John Bokma wrote:
    On 06/05/2026 19:37, Alan wrote:
    [..]
    Well...I DO have it. And actually, it's much better than ag.

    It's called "mdfind".

    While there is some overlap, they are very different tools.


    They ARE different tools!

    But the one thing the article specifically highlights...

    ...is already done far, FAR better by mdfind.

    That's just a fact.

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line the
    word 'cat' is found on and the 3 lines before this line and 2 after?
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 21:58:10 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 20:04, CrudeSausage wrote:
    On 2026-05-06 1:09 p.m., John Bokma wrote:
    On 06/05/2026 18:56, CrudeSausage wrote:

    The actual package manager is called nix?

    Yes. And the OS is called NixOS: <https://nixos.org/>

    And NixOS is not Linux?

    Yes, it's Linux. However, Nix (the package manager) can be used without
    Linux.
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 22:00:43 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 20:05, CrudeSausage wrote:
    On 2026-05-06 1:09 p.m., John Bokma wrote:
    On 06/05/2026 18:56, CrudeSausage wrote:

    The actual package manager is called nix?

    Yes. And the OS is called NixOS: <https://nixos.org/>

    Literally from the NixOS.org page:

    "NixOS is a Linux distribution built around the Nix package manager."

    The package manager is also available outside of NixOS. i.e. it runs on
    macOS as well.
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 13:34:55 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 12:57, John Bokma wrote:
    On 06/05/2026 20:58, Alan wrote:
    On 2026-05-06 10:52, John Bokma wrote:
    On 06/05/2026 19:37, Alan wrote:
    [..]
    Well...I DO have it. And actually, it's much better than ag.

    It's called "mdfind".

    While there is some overlap, they are very different tools.


    They ARE different tools!

    But the one thing the article specifically highlights...

    ...is already done far, FAR better by mdfind.

    That's just a fact.

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line the
    word 'cat' is found on and the 3 lines before this line and 2 after?



    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CrudeSausage@crude@sausa.ge to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 18:45:49 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 3:58 p.m., John Bokma wrote:
    On 06/05/2026 20:04, CrudeSausage wrote:
    On 2026-05-06 1:09 p.m., John Bokma wrote:
    On 06/05/2026 18:56, CrudeSausage wrote:

    The actual package manager is called nix?

    Yes. And the OS is called NixOS: <https://nixos.org/>

    And NixOS is not Linux?

    Yes, it's Linux. However, Nix (the package manager) can be used without Linux.

    Ah, that makes sense. Tell yourself that the term "nix" is commonly used
    to refer to Linux. Having never used Nix myself (because it is run by
    rabid leftists), I wasn't aware that they decided to take control of the
    term for themselves. How very Communist of them to take something that
    doesn't belong to them.
    --
    CrudeSausage
    M4 MacBook Air
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From rbowman@bowman@montana.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Thu May 7 01:34:15 2026
    From Newsgroup: comp.sys.mac.advocacy

    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    And this is easier than 'find . -name "*.py" | .....
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Wed May 6 19:31:12 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Bokma@contact@johnbokma.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Thu May 7 12:08:28 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line
    the word 'cat' is found on and the 3 lines before this line and 2 after?



    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.
    --
    Static tumblelog generator: https://github.com/john-bokma/tumblelog/
    Available as Python or Perl. Example tumblelog: https://plurrrr.com/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Thu May 7 07:27:48 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-07 03:08, John Bokma wrote:
    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line
    the word 'cat' is found on and the 3 lines before this line and 2 after? >>>


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.


    Given that the tools exist to "remember" for you, that hardly matters,
    and I guarantee you that mdfind is orders of magnitude faster.

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris Ahlstrom@OFeem1987@teleworm.us to comp.os.linux.advocacy,comp.sys.mac.advocacy on Fri May 8 13:44:21 2026
    From Newsgroup: comp.sys.mac.advocacy

    Alan wrote this screed in ALL-CAPS:

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.

    Cached, obviously :-D
    --
    Main's Law:
    For every action there is an equal and opposite government program.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris Ahlstrom@OFeem1987@teleworm.us to comp.os.linux.advocacy,comp.sys.mac.advocacy on Fri May 8 13:52:29 2026
    From Newsgroup: comp.sys.mac.advocacy

    Alan wrote this screed in ALL-CAPS:

    On 2026-05-07 03:08, John Bokma wrote:
    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line
    the word 'cat' is found on and the 3 lines before this line and 2 after? >>>
    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.

    Given that the tools exist to "remember" for you, that hardly matters,
    and I guarantee you that mdfind is orders of magnitude faster.

    Sounds a bit like UNIX locate/plocate.
    --
    If a train station is a place where a train stops, what's a workstation?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Fri May 8 11:33:59 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-08 10:44, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.

    Cached, obviously :-D
    Nope.

    Indexed.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Fri May 8 11:38:41 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-08 10:52, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-07 03:08, John Bokma wrote:
    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line
    the word 'cat' is found on and the 3 lines before this line and 2 after? >>>>
    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.

    Given that the tools exist to "remember" for you, that hardly matters,
    and I guarantee you that mdfind is orders of magnitude faster.

    Sounds a bit like UNIX locate/plocate.
    You need to learn a little more about how Apple implemented what in the
    GUI part of the OS is called "Spotlight".

    "mdfind" is just a command line tool that leverages the same index that
    is created for Spotlight.

    I just ran this:

    agbaker@Alans-M3 / % time mdfind ahlstrom

    The result:

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading keywords and predicates for locale "en_CA"

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading keywords and predicates for locale "en"

    /Users/agbaker/Library/Group
    Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/Data/Messages/109/6DCA995E-E984-4A01-8FEA-ECF490248F0B.olk15Message

    mdfind ahlstrom 0.04s user 0.06s system 38% cpu 0.259 total
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris Ahlstrom@OFeem1987@teleworm.us to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sat May 9 08:59:21 2026
    From Newsgroup: comp.sys.mac.advocacy

    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:44, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.

    Cached, obviously :-D

    Nope.

    Indexed.

    And cached.
    --
    poisoned coffee, n.:
    Grounds for divorce.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris Ahlstrom@OFeem1987@teleworm.us to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sat May 9 09:06:32 2026
    From Newsgroup: comp.sys.mac.advocacy

    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:52, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-07 03:08, John Bokma wrote:
    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line >>>>>> the word 'cat' is found on and the 3 lines before this line and 2 after? >>>>>
    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.

    Given that the tools exist to "remember" for you, that hardly matters,
    and I guarantee you that mdfind is orders of magnitude faster.

    Sounds a bit like UNIX locate/plocate.

    You need to learn a little more about how Apple implemented what in the
    GUI part of the OS is called "Spotlight".

    "mdfind" is just a command line tool that leverages the same index that
    is created for Spotlight.

    Duh-uh. I found that out on my own.

    I just ran this:

    agbaker@Alans-M3 / % time mdfind ahlstrom

    The result:

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading keywords and predicates for locale "en_CA"

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading keywords and predicates for locale "en"

    /Users/agbaker/Library/Group
    Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/Data/Messages/109/6DCA995E-E984-4A01-8FEA-ECF490248F0B.olk15Message

    mdfind ahlstrom 0.04s user 0.06s system 38% cpu 0.259 total

    Whoop de do.

    $ time locate ahlstrom &> /dev/null
    real 0m1.027s
    user 0m0.927s
    sys 0m0.141s

    This is on my computer, and emits 442650 hits (as counted by
    piping the command to wc -l.)

    Another example, a more realistic use of locate:

    $ time locate vim
    real 0m0.043s
    user 0m0.015s
    sys 0m0.023s
    --
    Laundry is the fifth dimension!! ... um ... um ... th' washing machine
    is a black hole and the pink socks are bus drivers who just fell in!!
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sat May 9 06:09:56 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-09 05:59, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:44, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.

    Cached, obviously :-D

    Nope.

    Indexed.

    And cached.


    Nope.

    Yes, there is an index.

    No, nothing was cached.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sat May 9 06:10:44 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-09 06:06, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:52, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-07 03:08, John Bokma wrote:
    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line >>>>>>> the word 'cat' is found on and the 3 lines before this line and 2 after?

    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.

    Given that the tools exist to "remember" for you, that hardly matters, >>>> and I guarantee you that mdfind is orders of magnitude faster.

    Sounds a bit like UNIX locate/plocate.

    You need to learn a little more about how Apple implemented what in the
    GUI part of the OS is called "Spotlight".

    "mdfind" is just a command line tool that leverages the same index that
    is created for Spotlight.

    Duh-uh. I found that out on my own.

    I just ran this:

    agbaker@Alans-M3 / % time mdfind ahlstrom

    The result:

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading
    keywords and predicates for locale "en_CA"

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading
    keywords and predicates for locale "en"

    /Users/agbaker/Library/Group
    Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main
    Profile/Data/Messages/109/6DCA995E-E984-4A01-8FEA-ECF490248F0B.olk15Message >>
    mdfind ahlstrom 0.04s user 0.06s system 38% cpu 0.259 total

    Whoop de do.

    $ time locate ahlstrom &> /dev/null
    real 0m1.027s
    user 0m0.927s
    sys 0m0.141s

    This is on my computer, and emits 442650 hits (as counted by
    piping the command to wc -l.)

    Another example, a more realistic use of locate:

    $ time locate vim
    real 0m0.043s
    user 0m0.015s
    sys 0m0.023s


    "locate" doesn't locate everything.

    "mdfind" and the system it uses indexing everything.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris Ahlstrom@OFeem1987@teleworm.us to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sun May 10 08:06:18 2026
    From Newsgroup: comp.sys.mac.advocacy

    Alan wrote this screed in ALL-CAPS:

    On 2026-05-09 05:59, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:44, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.

    Cached, obviously :-D

    Nope.

    Indexed.

    And cached.

    Nope.

    Yes, there is an index.

    No, nothing was cached.

    Are you saying that MacOS does not cache data? Data such as... an
    index?

    Surely you're joking, Mr. Fine Man!
    --
    Innocence ends when one is stripped of the delusion that one likes oneself.
    -- Joan Didion, "On Self Respect"
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris Ahlstrom@OFeem1987@teleworm.us to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sun May 10 08:16:39 2026
    From Newsgroup: comp.sys.mac.advocacy

    Alan wrote this screed in ALL-CAPS:

    On 2026-05-09 06:06, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:52, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-07 03:08, John Bokma wrote:
    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line >>>>>>>> the word 'cat' is found on and the 3 lines before this line and 2 after?

    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.

    Given that the tools exist to "remember" for you, that hardly matters, >>>>> and I guarantee you that mdfind is orders of magnitude faster.

    Sounds a bit like UNIX locate/plocate.

    You need to learn a little more about how Apple implemented what in the
    GUI part of the OS is called "Spotlight".

    "mdfind" is just a command line tool that leverages the same index that
    is created for Spotlight.

    Duh-uh. I found that out on my own.

    I just ran this:

    agbaker@Alans-M3 / % time mdfind ahlstrom

    The result:

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading
    keywords and predicates for locale "en_CA"

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading
    keywords and predicates for locale "en"

    /Users/agbaker/Library/Group
    Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main
    Profile/Data/Messages/109/6DCA995E-E984-4A01-8FEA-ECF490248F0B.olk15Message >>>
    mdfind ahlstrom 0.04s user 0.06s system 38% cpu 0.259 total

    Whoop de do.

    $ time locate ahlstrom &> /dev/null
    real 0m1.027s
    user 0m0.927s
    sys 0m0.141s

    This is on my computer, and emits 442650 hits (as counted by
    piping the command to wc -l.)

    Another example, a more realistic use of locate:

    $ time locate vim
    real 0m0.043s
    user 0m0.015s
    sys 0m0.023s

    "locate" doesn't locate everything.

    Define "everything".

    "mdfind" and the system it uses indexing everything.

    You really need to be precise, because index all information on
    a disk would be huge.

    $ locate xyz

    This finds about 20 files on this system.

    Fwiw, /var/lib/plocate/plocate.db is about 22 Mb on this system.
    --
    Truth is free, but information costs.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From pothead@pothead@snakebite.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sun May 10 12:24:50 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-10, Chris Ahlstrom <OFeem1987@teleworm.us> wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-09 06:06, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:52, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-07 03:08, John Bokma wrote:
    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line >>>>>>>>> the word 'cat' is found on and the 3 lines before this line and 2 after?

    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.

    Given that the tools exist to "remember" for you, that hardly matters, >>>>>> and I guarantee you that mdfind is orders of magnitude faster.

    Sounds a bit like UNIX locate/plocate.

    You need to learn a little more about how Apple implemented what in the >>>> GUI part of the OS is called "Spotlight".

    "mdfind" is just a command line tool that leverages the same index that >>>> is created for Spotlight.

    Duh-uh. I found that out on my own.

    I just ran this:

    agbaker@Alans-M3 / % time mdfind ahlstrom

    The result:

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading >>>> keywords and predicates for locale "en_CA"

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading >>>> keywords and predicates for locale "en"

    /Users/agbaker/Library/Group
    Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main
    Profile/Data/Messages/109/6DCA995E-E984-4A01-8FEA-ECF490248F0B.olk15Message

    mdfind ahlstrom 0.04s user 0.06s system 38% cpu 0.259 total

    Whoop de do.

    $ time locate ahlstrom &> /dev/null
    real 0m1.027s
    user 0m0.927s
    sys 0m0.141s

    This is on my computer, and emits 442650 hits (as counted by
    piping the command to wc -l.)

    Another example, a more realistic use of locate:

    $ time locate vim
    real 0m0.043s
    user 0m0.015s
    sys 0m0.023s

    "locate" doesn't locate everything.

    Define "everything".

    "mdfind" and the system it uses indexing everything.

    You really need to be precise, because index all information on
    a disk would be huge.

    $ locate xyz

    This finds about 20 files on this system.

    Fwiw, /var/lib/plocate/plocate.db is about 22 Mb on this system.

    It's 11.3 MB on my system.
    --
    pothead

    "Often imitated, never duplicated."

    "Socialism is the philosophy of failure,
    the creed of ignorance, and the gospel of envy.
    It's inherent virtue is the equal sharing of misery."

    -- Winston Churchill




    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sun May 10 06:25:43 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-10 05:06, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-09 05:59, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:44, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.

    Cached, obviously :-D

    Nope.

    Indexed.

    And cached.

    Nope.

    Yes, there is an index.

    No, nothing was cached.

    Are you saying that MacOS does not cache data? Data such as... an
    index?

    Surely you're joking, Mr. Fine Man!


    An index is not a cache.

    You were trying to imply that it ran fast because it had run immediately before.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sun May 10 06:34:37 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-10 05:16, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-09 06:06, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:52, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-07 03:08, John Bokma wrote:
    On 06/05/2026 22:34, Alan wrote:
    On 2026-05-06 12:57, John Bokma wrote:

    [..]

    Can you show me how to use mdfind to:

    search in all python only files for the word 'cat' showing the line >>>>>>>>> the word 'cat' is found on and the 3 lines before this line and 2 after?

    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all!

    Ok, fair enough, although you need extra commands.

    ag --python -B3 -A2 '\bcat\b'

    Easier to remember.

    Given that the tools exist to "remember" for you, that hardly matters, >>>>>> and I guarantee you that mdfind is orders of magnitude faster.

    Sounds a bit like UNIX locate/plocate.

    You need to learn a little more about how Apple implemented what in the >>>> GUI part of the OS is called "Spotlight".

    "mdfind" is just a command line tool that leverages the same index that >>>> is created for Spotlight.

    Duh-uh. I found that out on my own.

    I just ran this:

    agbaker@Alans-M3 / % time mdfind ahlstrom

    The result:

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading >>>> keywords and predicates for locale "en_CA"

    2026-05-08 11:37:24.286 mdfind[57515:2714553] [UserQueryParser] Loading >>>> keywords and predicates for locale "en"

    /Users/agbaker/Library/Group
    Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main
    Profile/Data/Messages/109/6DCA995E-E984-4A01-8FEA-ECF490248F0B.olk15Message

    mdfind ahlstrom 0.04s user 0.06s system 38% cpu 0.259 total

    Whoop de do.

    $ time locate ahlstrom &> /dev/null
    real 0m1.027s
    user 0m0.927s
    sys 0m0.141s

    This is on my computer, and emits 442650 hits (as counted by
    piping the command to wc -l.)

    Another example, a more realistic use of locate:

    $ time locate vim
    real 0m0.043s
    user 0m0.015s
    sys 0m0.023s

    "locate" doesn't locate everything.

    Define "everything".

    "mdfind" and the system it uses indexing everything.

    You really need to be precise, because index all information on
    a disk would be huge.

    $ locate xyz

    This finds about 20 files on this system.

    Fwiw, /var/lib/plocate/plocate.db is about 22 Mb on this system.


    The Spotlight index for my Data drive is 4.3G, so not small...

    ...but at less than half a percent of my 1TB drive, I wouldn't call it
    "huge".
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris Ahlstrom@OFeem1987@teleworm.us to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sun May 10 12:21:58 2026
    From Newsgroup: comp.sys.mac.advocacy

    Alan wrote this screed in ALL-CAPS:

    On 2026-05-10 05:06, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-09 05:59, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:44, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all! >>>>>>>>
    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.

    Cached, obviously :-D

    Nope.

    Indexed.

    And cached.

    Nope.

    Yes, there is an index.

    No, nothing was cached.

    Are you saying that MacOS does not cache data? Data such as... an
    index?

    Surely you're joking, Mr. Fine Man!

    An index is not a cache.

    Duh!

    You were trying to imply that it ran fast because it had run immediately before.

    I'm done with you, so obtuse, on this topic.
    --
    I smell a wumpus.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Sun May 10 21:41:42 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-10 09:21, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-10 05:06, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-09 05:59, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-08 10:44, Chris Ahlstrom wrote:
    Alan wrote this screed in ALL-CAPS:

    On 2026-05-06 18:34, rbowman wrote:
    On Wed, 6 May 2026 13:34:55 -0700, Alan wrote:


    Sure!

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 | >>>>>>>>>> xargs -0 grep -i -B 3 -A 2 "cat"

    Didn't need to install an additional piece of software at all! >>>>>>>>>
    And this is easier than 'find . -name "*.py" | .....

    Faster... ...like a LOT faster; impossibly faster.

    On my drive with 2,711,067 files, running my command takes...

    (Running it again now)

    ...1 second.

    Cached, obviously :-D

    Nope.

    Indexed.

    And cached.

    Nope.

    Yes, there is an index.

    No, nothing was cached.

    Are you saying that MacOS does not cache data? Data such as... an
    index?

    Surely you're joking, Mr. Fine Man!

    An index is not a cache.

    Duh!

    You were trying to imply that it ran fast because it had run immediately
    before.

    I'm done with you, so obtuse, on this topic.


    So if that isn't what you were implying...

    ...and you acknowledge that an index is not the same thing as a cache...

    ...what WERE you trying to claim?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Mon May 11 10:26:12 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-10 11:33, rbowman wrote:
    On Sun, 10 May 2026 08:16:39 -0400, Chris Ahlstrom wrote:

    $ locate xyz

    This finds about 20 files on this system.

    It finds 134 on mine :) That's what happens when you mess around with GIS stuff. There are a lot of Python and Node library files to handle tile requests. The plocate database is 40 MB.

    My ".Spotlight-V100" directory is 4.3GB...

    ...less than 0.5% of my 1TB drive...

    ...and it lets me find every ".py" file on the entire volume in less
    than a second.

    I guarantee you that 4.3GB of my RAM is not occupied by a "cached"
    version of the index.

    Executing this command on "/" (which has some 2,719,481 files) using the "time" utility:

    mdfind "kMDItemFSName == '*.py' && kMDItemTextContent == 'cat'" -0 |
    xargs -0 grep -i -B 3 -A 2 "cat"

    Which finds ever python file, and prints out 3 lines before and three
    lines after the "cat" in each...

    ...took 0.505 seconds.

    I realize that you Linux advocates have to sign a contract in blood with
    Linus Torvalds before they're allowed to use Linux, but seriously:

    Spotlight works excellently, and you just look foolish when you try to
    compare it to something like "locate".
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Mon May 11 10:26:58 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-11 04:33, Chris Ahlstrom wrote:
    rbowman wrote this screed in ALL-CAPS:

    On Sun, 10 May 2026 08:16:39 -0400, Chris Ahlstrom wrote:

    $ locate xyz

    This finds about 20 files on this system.

    It finds 134 on mine :) That's what happens when you mess around with GIS >> stuff. There are a lot of Python and Node library files to handle tile
    requests. The plocate database is 40 MB.

    Arguing with an Apple fanboi is like mud wrestling a pig.

    Seems so. I explicitly noted that an index can be cached.

    No. You made no such explicit claim...

    ...but good job running away to the safety of COLA.

    :-)
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From MLT@melaniasloosetwat@wicks.org to comp.os.linux.advocacy,comp.sys.mac.advocacy on Tue May 12 01:20:30 2026
    From Newsgroup: comp.sys.mac.advocacy

    Alan <nuh-uh@nope.com> wrote in news:10tt3h2$19gng$2@dont-email.me:

    On 2026-05-11 04:33, Chris Ahlstrom wrote:
    rbowman wrote this screed in ALL-CAPS:

    On Sun, 10 May 2026 08:16:39 -0400, Chris Ahlstrom wrote:

    $ locate xyz

    This finds about 20 files on this system.

    It finds 134 on mine :) That's what happens when you mess around
    with GIS stuff. There are a lot of Python and Node library files to
    handle tile requests. The plocate database is 40 MB.

    Arguing with an Apple fanboi is like mud wrestling a pig.

    Seems so. I explicitly noted that an index can be cached.

    No. You made no such explicit claim...

    ...but good job running away to the safety of COLA.

    :-)


    How much is Apple paying you Alan to be an extreme fanboy?
    Whatever it is, they are wasting their money because you are considered a joke. Nobody trusts your post. Most people ignore them.

    So how much you making to spew this garbage?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CrudeSausage@crude@sausa.ge to comp.os.linux.advocacy,comp.sys.mac.advocacy on Mon May 11 21:36:01 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-11 9:20 p.m., MLT wrote:
    Alan <nuh-uh@nope.com> wrote in news:10tt3h2$19gng$2@dont-email.me:

    On 2026-05-11 04:33, Chris Ahlstrom wrote:
    rbowman wrote this screed in ALL-CAPS:

    On Sun, 10 May 2026 08:16:39 -0400, Chris Ahlstrom wrote:

    $ locate xyz

    This finds about 20 files on this system.

    It finds 134 on mine :) That's what happens when you mess around
    with GIS stuff. There are a lot of Python and Node library files to
    handle tile requests. The plocate database is 40 MB.

    Arguing with an Apple fanboi is like mud wrestling a pig.

    Seems so. I explicitly noted that an index can be cached.

    No. You made no such explicit claim...

    ...but good job running away to the safety of COLA.

    :-)


    How much is Apple paying you Alan to be an extreme fanboy?
    Whatever it is, they are wasting their money because you are considered a joke. Nobody trusts your post. Most people ignore them.

    I know I do.

    So how much you making to spew this garbage?

    They pay him in free Apple stickers.
    --
    CrudeSausage
    M4 MacBook Air
    Islam is the worship of Satan
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Alan@nuh-uh@nope.com to comp.os.linux.advocacy,comp.sys.mac.advocacy on Mon May 11 21:20:55 2026
    From Newsgroup: comp.sys.mac.advocacy

    On 2026-05-11 18:20, MLT wrote:
    Alan <nuh-uh@nope.com> wrote in news:10tt3h2$19gng$2@dont-email.me:

    On 2026-05-11 04:33, Chris Ahlstrom wrote:
    rbowman wrote this screed in ALL-CAPS:

    On Sun, 10 May 2026 08:16:39 -0400, Chris Ahlstrom wrote:

    $ locate xyz

    This finds about 20 files on this system.

    It finds 134 on mine :) That's what happens when you mess around
    with GIS stuff. There are a lot of Python and Node library files to
    handle tile requests. The plocate database is 40 MB.

    Arguing with an Apple fanboi is like mud wrestling a pig.

    Seems so. I explicitly noted that an index can be cached.

    No. You made no such explicit claim...

    ...but good job running away to the safety of COLA.

    :-)


    How much is Apple paying you Alan to be an extreme fanboy?
    Whatever it is, they are wasting their money because you are considered a joke. Nobody trusts your post. Most people ignore them.

    So how much you making to spew this garbage?

    What part of what I just wrote is "garbage"...

    ...more so than calling Apple users "pigs"?
    --- Synchronet 3.22a-Linux NewsLink 1.2