After a find, I’d like to sort the output by the basename (the number of directories is unknown). I know this can be done by splitting the basename from the dirname and sorting that, but I’m specifically looking for something where it’s not necessary to modify the data before the sort. Something like sort --field-separator='/' -k '-1'.
After a find, I’d like to sort the output by the basename (the number
Share
Ended up with a solution of simply moving the base name to the start of the string, sorting, and moving it back. Not really what I was hoping for, but it works even with weirdzo file names.