?
Solved

find command - don't tranverse subdirectories

Posted on 2006-03-27
1
Medium Priority
?
262 Views
Last Modified: 2013-12-27
Hi,

I have written a find command using GNU find (findutils) to find files greater than 30 mins old, but not in the
subdirectory "sumitted" as:

/usr/local/bin/find ${WO_FAXES_DIR} -name submitted -prune -o -type f -cmins +30 -print

But how can I also skip the $WO_FAXES_DIR/bad subdirectory?
0
Comment
Question by:daveyu
1 Comment
 
LVL 48

Accepted Solution

by:
Tintin earned 1000 total points
ID: 16306279
/usr/local/bin/find ${WO_FAXES_DIR} -name submitted -prune -o -name bad  -pune -o -type f -cmins +30 -print
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question