Man find wholename
In the context of the tests path, wholename, ipath and wholename, a full path is the name of all the directories traversed from find 's start point to the file being tested, followed by the base name of the file itself. These paths are often not absolute paths; for example.Match only the base name against the specified patterns. This is the opposite of wholename. c, count Instead of writing file names on standard output, write the number of matching entries only. d, database DBPATH Replace the default database with DBPATH. DBPATH is a: man find wholename
When find examines or prints information about files, the information used shall be taken from the properties of the file to which the link points, not from the link itself (unless it is a broken symbolic link or find is unable to examine the file to which the link points).
wholename simpleregex [GNU find only. File name matches simple regular expression (often called shell patterns). In simple regular expressions the metacharacters and ' do not exist; so, for example, you can specify: find. wholename 'lib' which will print entries from directories lib64 and lib. Thus the wholename pattern will match because they start with. . The second command generates filenames starting with home. However, the wholename pattern is still looking for paths starting with. which will not match any file in this case. Note that patterns are not regular expressions. If you were expecting them, look at the regex optionman find wholename GNU find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence (see Operators), until the outcome is known (the left hand side is false for AND operations, true for OR), at which point find moves on to the next file name.Rating: 4.58 / Views: 623