[bug #58541] [wishlist] Add optional sort to find

Lady Aleena <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?58541>

                 Summary: [wishlist] Add optional sort to find
                 Project: findutils
            Submitted by: lady_aleena
            Submitted on: Thu 11 Jun 2020 05:49:51 AM UTC
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 4.6.0
         Discussion Lock: Any
           Fixed Release: None

    _______________________________________________________

Details:

Yesterday I used find so that I could open the resultant file list in my text
editor, but I wanted the files to be opened in sorted order. That meant that I
could not use the -exec option since I was piping to sort. It would be nice if
I could use something like -sort <maybe some sort options> in find, so that I
do not have to pipe find results to sort.

Example of possible usage:

find . -type f -sort
find . -type f -sort fnr

The first is just a plain sort, the second is a case ignored numeric reversed
sort. (I used options from sort.)

full find version: find 4.6.0.225-235f
OS: Debian 10





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58541>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.