[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find: print trailing slash for directories
From: |
Andreas Metzler |
Subject: |
Re: find: print trailing slash for directories |
Date: |
Sat, 6 Aug 2022 15:48:05 +0200 |
On 2022-08-06 Fourhundred Thecat <400thecat@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
./dir2/
./dir2/file4
./dir1/
./dir1/file3
./dir1/subdir/
./dir1/subdir/file5
cu Andreas