[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
find: print trailing slash for directories
From: |
Fourhundred Thecat |
Subject: |
find: print trailing slash for directories |
Date: |
Sat, 6 Aug 2022 09:20:27 +0200 |
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
- find: print trailing slash for directories,
Fourhundred Thecat <=