Include softlinked folders in unix "find"
Asked Answered
S

3

3

How can I tell unix "find" to include in it's recursive search a folder which is softlinked?

Scuta answered 22/12, 2008 at 7:17 Comment(0)
P
7

-L . This causes it to follow all symbolic (I assume this is what you mean by soft) links.

Pathfinder answered 22/12, 2008 at 7:21 Comment(0)
V
0

Interesting - I hadn't come across '-L' (or the opposite, '-H') before. You can also use '-follow' to do the same job. It can be built into expressions (it always evaluates to true), so you might be able to be more subtle with it that using '-L'. However, I wouldn't worry about that subtlety too much - the '-L' is simpler.

Vernation answered 22/12, 2008 at 8:19 Comment(0)
T
0

find some more information about unix find command at

http://scripterworld.blogspot.com/2009/07/unix-find-command-with-examples-and.html

Tonettetoney answered 31/7, 2009 at 3:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.