www.delorie.com/gnu/docs/findutils/find_12.html   search  
 
Buy GNU books!


Finding Files

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.2.1 Symbolic Links

Test: -lname pattern
Test: -ilname pattern
True if the file is a symbolic link whose contents match shell pattern pattern. For `-ilname', the match is case-insensitive. See section 2.1.4 Shell Pattern Matching, for details about the pattern argument. So, to list any symbolic links to `sysdep.c' in the current directory and its subdirectories, you can do:

 
find . -lname '*sysdep.c'

Option: -follow
Dereference symbolic links. The following differences in behavior occur when this option is given:


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003