Re: find: print trailing slash for directories
Andreas Metzler <[email protected]>
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 2022-08-06 Fourhundred Thecat <[email protected]> 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 ./dir2/ ./dir2/file4 ./dir1/ ./dir1/file3 ./dir1/subdir/ ./dir1/subdir/file5 cu Andreas