Re: find: print trailing slash for directories

2022-08-06 Thread Andreas Metzler
On 2022-08-06 Fourhundred Thecat <400the...@gmx.ch> wrote: > Hello, > how difficult would it be to patch find, to print trailing slash for > directories? [...] No patching required. ametzler@argenau:/tmp/findtest$ find \( -type d -printf '%p/\n' \) -or \( -print \) ./ ./symlink1 ./file1 ./file2

find: print trailing slash for directories

2022-08-06 Thread Fourhundred Thecat
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 f