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_ufs(1M)						  System Administration Commands						ff_ufs(1M)

NAME
ff_ufs - list file names and statistics for a ufs file system SYNOPSIS
ff -F ufs [generic_options] [-o a,m,s] special... DESCRIPTION
ff prints the pathnames and inode numbers of files in the file system which resides on the special device special. See ff(1M) for information regarding the ff command. See OPTIONS for information regarding the ufs-specific options. OPTIONS
The following options are supported: -o Specify ufs file system specific options. The following options available are: a Print the `.' and `..' directory entries. m Print mode information. This option must be specified in conjunction with the -i i-node-list option (see ff(1M)). s Print only special files and files with set-user-ID mode. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
find(1), ff(1M), ncheck(1M), attributes(5) SunOS 5.11 10 Feb 1997 ff_ufs(1M)
All times are GMT -4. The time now is 08:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy