find: print trailing slash for directories

Fourhundred Thecat <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Hello,

how difficult would it be to patch find, to print trailing slash for
directories?

This seems like a very useful feature, without interfering with
compatibility or specifications.

I have found many questions on the various forums. There are some ugly
hacks offered, all relying on piping find output to other commands (sed).

The least ugly one I found: find . -printf "%p:%y\n"

I am wondering if some simple patch would be possible to do this by
default in find?

I am using findutils 4.6.0 on Debian 10

I would be happy to patch my own find, if somebody could kindly offer a
solution. I am not a programmer myself, just a sysadmin.

thank you
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.