Update find(1) man page for -L/-delete interaction.
It is a bit unfortunate that the example to delete broken symlinks now uses rm(1), but allowing this with -delete would require fixing fts(3) to not imply FTS_NOCHDIR if FTS_LOGICAL is given (or hacks in the -delete option). PR: bin/90687 MFC after: 2 weeks
This commit is contained in:
parent
ac8f32ce62
commit
a05cb85237
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197363
@ -312,6 +312,7 @@ character in its pathname relative to
|
||||
.Dq Pa \&.
|
||||
for security reasons.
|
||||
Depth-first traversal processing is implied by this option.
|
||||
Following symlinks is incompatible with this option.
|
||||
.It Ic -depth
|
||||
Always true;
|
||||
same as the
|
||||
@ -920,7 +921,7 @@ recent than the current time minus one minute.
|
||||
Use the
|
||||
.Xr echo 1
|
||||
command to print out a list of all the files.
|
||||
.It Li "find -L /usr/ports/packages -type l -delete"
|
||||
.It Li "find -L /usr/ports/packages -type l -exec rm -- {} +"
|
||||
Delete all broken symbolic links in
|
||||
.Pa /usr/ports/packages .
|
||||
.It Li "find /usr/src -name CVS -prune -o -depth +6 -print"
|
||||
|
Loading…
Reference in New Issue
Block a user