coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistent behavior of core utilities


From: Michael Stone
Subject: Re: Inconsistent behavior of core utilities
Date: Wed, 24 Aug 2022 13:31:37 -0400

On Wed, Aug 24, 2022 at 10:17:49AM -0700, L A Walsh wrote:
On 2022/08/23 00:30, Mike Jonkmans wrote:
que

find is the path to go.
Because find isn't part of coreutils?

there's more to life than coreutils

find isn't consistent either:

find . -name \*.foo

gives you output from dir ".", but you have to edit the output or add other args to get just the filenames, since there is no easy way to start from the current directory:

find . -name \*.foo -type f

if you want just the files in the top directory and not subdirectories then

find . -name \*.foo -maxdepth 1 -type f

find isn't the path to go, as it's internally inconsistent (not to mention it's not
part of coreutils).

It's very consistent, you just have to learn how it works. Why on earth would coreutils reinvent something that does exactly the job you're trying to do?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]