Sponsored Content
Full Discussion: Warning using 'find'.
Operating Systems OS X (Apple) Warning using 'find'. Post 302985582 by MadeInGermany on Friday 11th of November 2016 02:46:19 PM
Old 11-11-2016
Get used to the following, that will skip "hidden" directories like .Trash/ .git/ .snapshot/ .Wastebasket/ ...
Code:
find "$HOME" -type d -name '.?*' -prune -o -type f -name 'sox' -print

Note the -print is important. Otherwise it defaults to also print the pruned directories!
These 2 Users Gave Thanks to MadeInGermany For This Post:
 

2 More Discussions You Might Find Interesting

1. Solaris

Jumpstart -- Warning: Could not find matching rule in rules.ok

I just setup a new jumpstart server, and I'm having problems with rules.ok errors. I'm coming up blank after many Google searches, forum searches, etc..... This is the error I receive: Skipped interface e1000g1 Attempting to configure interface e1000g0... Configured interface e1000g0... (0 Replies)
Discussion started by: christr
0 Replies

2. Shell Programming and Scripting

find command giving incomplete sentence warning

Hi , I am adding a line in my shell scripts to delete all the old directory with the below command. On running this command it is coming out with the message find: incomplete statement find /ersdg3/ERS/ERS_INPUT_LOGS/RIO/rio_archive -type d -mtime +47 -exec rm -rf {} What is wrong or... (3 Replies)
Discussion started by: guddu_12
3 Replies
ff_vxfs(1M)															       ff_vxfs(1M)

NAME
ff_vxfs: ff - fast find: list file names and statistics for a VxFS file system SYNOPSIS
num] num] inode-list] num] file] prefix] special... DESCRIPTION
reads the inode list and directories of each special file, assuming it to be a VxFS file system, and prints inode data for files that match the selection criteria. Output consists of the pathname for each saved inode, plus any other file information requested using the print options below. Output fields are positional. The output is produced in inode order; fields are separated by tabs. The default line pro- duced by is: pathname inumber The pathname is preceded by a dot unless you specify the generic option. The maximum information displays is: pathname inumber size owner The num parameter in the options descriptions is a decimal number, where means more than num days, means less than num days, and num means exactly num days. A day is defined as a 24-hour period. prints summary information to standard error output in addition to the report sent to standard output. Options recognizes the following options: Select a file if the inode has been accessed in num days. Select a file if the inode has been changed in num days. Specify the VxFS file system type. Generate names for any inodes specified in the inode-list. Do not display the inode number after each pathname. Generate a list of all pathnames for files with more than one link. Select a file associated with the inode if it has been modified in num days. Select a file associated with an inode if it has been modified more recently than the specified file. Add the specified prefix to each pathname. The default prefix is dot Print only special files and files with set-user-ID mode (VxFS-specific option). Write the file size, in bytes, after each pathname. Write the owner's login name after each pathname. Echo the completed command line, but performs no other action. The command line is generated by incorporating the user specified options and other information derived from This option allows the user to verify the command line. Operands recognizes the following operand: special Name of a VxFS file system. EXAMPLES
List the pathnames and inumbers of all files in the file system Same as above, but suppress the printing of inumbers: List files on the same file system that have been modified in the last two days displaying the pathname, inumber, and owner's user name List all files on the same file system, including the pathname and inumber of each file, that were last accessed more than 30 days ago Find all pathnames associated with inodes and Execute the command on a VxFS file system FILES
Static information about the file systems. SEE ALSO
find(1), ff(1M), ncheck_vxfs(1M), fstab(4). ff_vxfs(1M)
All times are GMT -4. The time now is 06:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy