Directives %k size in 1K , %b in 512-byte blocks , %s in bytes. %d depth in the directory tree; 0 i.e. the file is a command line argument. %h Leading directories of file's name (all but the last element). %f name with any leading directories removed (only the last element). %p name. %P File's name with the name of the command line argument under which it was found removed. %H Command line argument under which file was found. %F Type of the filesystem the file is on; this value can be used for -fstype. %g group name, or numeric group ID if the group has no name. %G numeric group ID. %i inode number %l Object of symbolic link (empty string if not a symbolic link). %m permission bits (in octal). %n Number of hard links to file. %u owner, or numeric user ID if the user has no name. %U numeric user ID. A % character followed by any other character is discarded (the other character is output).
Rants and ravings of a semi-autistic developer who has a hard time remembering idiotic nonsense details. Why remember it, when you know where to find it.
Friday, April 19, 2013
find and the -printf argument formats in relation with xargs -n
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment