BIFFIND(1)
NAME
biffind − find files in a BIF system
SYNOPSIS
biffind path-name-list expression
HP-UX COMPATIBILITY
Level: HP-UX/NUCLEUS
Origin: HP
DESCRIPTION
Biffind is intended to mimic find(1).
A BIF file name is recognized by the embedded colon (:) delimiter (see bif(5) for BIF file naming conventions).
Biffind recursively descends the directory hierarchy for each path name in the path-name-list (i.e., one or more path names) seeking files that match a boolean expression written in the primaries given below.
−name pattern True if pattern matches the current file name. Pattern may consist of ascii characters as well as the meta characters:
’*’match all characters
’?’match any character
[...] match a range of characters.
−perm onum True if the file permission flags exactly match the octal number onum (see chmod(1) ). If onum is prefixed by a minus sign, more flag bits (017777, see stat(2) become significant and the flags are compared:
(flags&onum)==onum
−type c True if the type of the file is c, where c is b, c, d, p, or f for block special file, character special file, directory, fifo (a.k.a named pipe), or plain file.
−links n True if the file has n links.
−user uname True if the file belongs to the user uname. If uname is numeric and does not appear as a login name in the /etc/passwd file, it is taken as a user ID.
−group gname True if the file belongs to the group gname. If gname is numeric and does not appear in the /etc/group file, it is taken as a group ID.
−size n True if the file is n blocks long.
−exec cmd True if the executed cmd returns a zero value as exit status. The end of cmd must be punctuated by an escaped semicolon "\;". A command argument {} is replaced by the current path name.
−ok cmd Like −exec except that the generated command line is printed with a question mark first, and is executed only if the user responds by typing y.
−print Always true; causes the current path name to be printed. This option must be included on the find command line anytime you want find to print the path names it has found on the standard output. If −print is not specified, find locates the files, but fails to tell you about them!
When −print is specified as the only expression, find prints the absolute path names of all files it finds, beginning at each directory in the path-name-list. If −print is included as the last component of an expression, find prints the absolute path names of only those files which satisfy the other primaries in the expression.
−inum n True if the file has inode number n.
EXAMPLES
To print the names of all files on the BIF volume /dev/archive1:
biffind /dev/archive1: -print
The following command finds all files in /dev/old:/usr/lib which are directories:
biffind /dev/old:/usr/lib −type d −print
Finally,
find /dev/games:/users −type d −exec bifls -l {} \;
gives a long listing of every directory under /users on the device /dev/games.
FILES
/etc/passwd
/etc/group
SEE ALSO
Hewlett-Packard — last mod. May 11, 2021