Re: exclude directories from find command

2012-12-22 Thread Roland Smith
On Sat, Dec 22, 2012 at 06:22:44AM -0800, Jack Mc Lauren wrote: > Hi fellas > How can I exclude specific directories from my find command ? I want to look > for all files in the whole system except for those in e.g /extra directory.  > I use this command to find all files, but how c

Re: exclude directories from find command

2012-12-22 Thread Bas Smeelen
On 12/22/12 15:22, Jack Mc Lauren wrote: Hi fellas How can I exclude specific directories from my find command ? I want to look for all files in the whole system except for those in e.g /extra directory. I use this command to find all files, but how can I exclude /extra directory ? find

Re: exclude directories from find command

2012-12-22 Thread RW
On Sat, 22 Dec 2012 06:22:44 -0800 (PST) Jack Mc Lauren wrote: > Hi fellas > How can I exclude specific directories from my find command ? I want > to look for all files in the whole system except for those in > e.g /extra directory. I use this command to find all files, but how >

Re: exclude directories from find command

2012-12-22 Thread Jens Jahnke
Hi, On Sat, 22 Dec 2012 06:22:44 -0800 (PST) Jack Mc Lauren wrote: JML> How can I exclude specific directories from my find command ? I JML> want to look for all files in the whole system except for those in JML> e.g /extra directory. I use this command to find all files, but JML&g

exclude directories from find command

2012-12-22 Thread Jack Mc Lauren
Hi fellas How can I exclude specific directories from my find command ? I want to look for all files in the whole system except for those in e.g /extra directory.  I use this command to find all files, but how can I exclude /extra directory ? find / -type f Thanks in advance

Re: Using Multiple -prune directives in a find command

2011-02-08 Thread Martin McCormick
Mike Clarke writes: > find . -type d -name dir1 -prune -o -name dir2 -prune -o -name \* > > ... should list all files except those in dir1 or dir2 It certainly does. Thank you. I was off on enough wrong syntax tracks that it probably would have taken a very long time to figure it out. I found ton

Re: Using Multiple -prune directives in a find command

2011-02-07 Thread Mike Clarke
On Monday 07 February 2011, Martin McCormick wrote: > Can one use the -prune directive multiple times in a > find command to specify a list of directories not to descend? > > It would be like > > find . -name "*" -prune dir1 -prune dir2 -print > >

Using Multiple -prune directives in a find command

2011-02-07 Thread Martin McCormick
Can one use the -prune directive multiple times in a find command to specify a list of directories not to descend? It would be like find . -name "*" -prune dir1 -prune dir2 -print or whatever you wanted find to do, but that does not work or I wouldn't be asking.

Re: find command question

2009-04-10 Thread Jay Hall
It has to wait for completion to see the exit status. Thanks. I misunderstood what I read. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-quest

Re: find command question

2009-04-09 Thread Josh Carroll
On Thu, Apr 9, 2009 at 8:01 AM, Jay Hall wrote: > When using the find command with the -exec option, does the find command > wait for the command being executed to finish before returning the next > result? > > For example, if I am using find -exec {} to copy files to tape, will

Re: find command question

2009-04-09 Thread Dan Nelson
In the last episode (Apr 09), Jay Hall said: > When using the find command with the -exec option, does the find command > wait for the command being executed to finish before returning the next > result? > > For example, if I am using find -exec {} to copy files to tape, will find

find command question

2009-04-09 Thread Jay Hall
When using the find command with the -exec option, does the find command wait for the command being executed to finish before returning the next result? For example, if I am using find -exec {} to copy files to tape, will find wait for the command to write the file to tape complete before

Re: Permission Denied for "find" command; No idea why

2008-11-12 Thread Jeremy Chadwick
06 Nov 13 04:18 2008-11-13.mysql-wiki.sql > -rw--- 1 www wheel 111845376 Nov 13 04:18 2008-11-13.www.tar > -r-xrw 1 www wheel 8109 Nov 13 04:16 daily_backup.sh > > For some reason, the "find" command above is getting a "permission denied." &

Permission Denied for "find" command; No idea why

2008-11-12 Thread APseudoUtopia
8109 Nov 13 04:16 daily_backup.sh For some reason, the "find" command above is getting a "permission denied." And, again, the "find" command is being run by the "www" user, who owns the files and dir. The exact message is: "find: .: Permission denied&qu

find command

2005-03-21 Thread bsd
Need "find" binary for FREE BSD 4.9 - REL p11 Need to place this command on a remote server for a cron script to function. Please reply to [EMAIL PROTECTED] (Alan) Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/m

Re: Find Command Syntax

2004-09-22 Thread Drew Tomlinson
On 9/22/2004 11:23 AM Matthew Seaman wrote: On Wed, Sep 22, 2004 at 10:47:38AM -0700, Drew Tomlinson wrote: OK, I'm trying to understand the difference. According to the manual -ctime is "change of file status" and -mtime is "last modification time". I think I understand what modification me

Re: Find Command Syntax

2004-09-22 Thread Matthew Seaman
On Wed, Sep 22, 2004 at 10:47:38AM -0700, Drew Tomlinson wrote: > OK, I'm trying to understand the difference. According to the manual > -ctime is "change of file status" and -mtime is "last modification > time". I think I understand what modification means (changing the > contents of the fil

RE: Find Command Syntax

2004-09-22 Thread Ralph Hempel
> OK, I'm trying to understand the difference. According to the manual > -ctime is "change of file status" and -mtime is "last modification > time". I think I understand what modification means (changing the > contents of the file) but what is "change of file status"? In my > particular sit

Re: Find Command Syntax

2004-09-22 Thread Drew Tomlinson
On 9/22/2004 10:34 AM Matthew Seaman wrote: On Wed, Sep 22, 2004 at 09:04:38AM -0700, Drew Tomlinson wrote: On 9/22/2004 8:39 AM Matthew Seaman wrote: Try: find /path/to/Maildir/.Spam/cur -type f -mtime +1 -print Or you might want to use -ctime instead of -mtime -- I think mtime is prob

Re: Find Command Syntax

2004-09-22 Thread Matthew Seaman
On Wed, Sep 22, 2004 at 09:04:38AM -0700, Drew Tomlinson wrote: > On 9/22/2004 8:39 AM Matthew Seaman wrote: > >Try: > > > > find /path/to/Maildir/.Spam/cur -type f -mtime +1 -print > > > >Or you might want to use -ctime instead of -mtime -- I think mtime is > >probably a more reliable measure t

Re: Find Command Syntax

2004-09-22 Thread Drew Tomlinson
rrent directory listing: I'm trying to use the find command to do the deleting but am having trouble with the syntax. For testing, I'm using this command: blacklamb> find /path/to/Maildir/.Spam/cur \! -newerct 1d -print blacklamb> It finds nothing. I read in the manual that

Re: Find Command Syntax

2004-09-22 Thread Matthew Seaman
On Wed, Sep 22, 2004 at 08:26:07AM -0700, Drew Tomlinson wrote: > I'm trying to write a script to feed the mail in my spam folder to > Spamassassin's sa-learn and then delete the mails older than 1 day in > that spam folder. Here's my current directory listing: >

Re: Find Command Syntax

2004-09-22 Thread Kliment Andreev
Drew Tomlinson wrote: I've also tried a combination of adding ()'s around the expression but that hasn't worked either. What am I missing? Is this an appropriate choice for what I want to do? Is there another command better suited for this task? Use quotes "" # find . -name "aaa" -print diff

Find Command Syntax

2004-09-22 Thread Drew Tomlinson
5718 Sep 22 06:34 1095860049.48407_0.blacklamb.mykitchentable.net:2, -rw--- 1 user group 5254 Sep 22 07:22 1095862947.48525_0.blacklamb.mykitchentable.net:2, -rw-r--r-- 1 user group 23314 Sep 21 18:41 1095863122.M795851P95252V5B00I0031FB22_1.blacklamb.mykitchentable.net,S=23314:2,S I'm trying

Re: The find command

2003-10-13 Thread Stephen Hilton
On Mon, 13 Oct 2003 21:02:11 -0400 Gerald S Stoller <[EMAIL PROTECTED]> wrote: > FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC i386 > > I tried out the -inum option of the find comma

The find command

2003-10-13 Thread Gerald S Stoller
FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC i386 I tried out the -inum option of the find command and find that it didn't work. I got a valid inode number from 'ls -i' and fed tha

Re: simple find command

2002-11-11 Thread David S. Jackson
On Wed, Nov 06, 2002 at 11:24:19AM -0600 Matthew Bettinger <[EMAIL PROTECTED]> wrote: > Hello, > > I am having a bit of trouble with the find command. I am a novice in its use > so maybe someone can help me out here. > > I have a list of files (hundreds) in direct

Re: simple find command

2002-11-06 Thread Gary W. Swearingen
Matthew Bettinger <[EMAIL PROTECTED]> writes: > I have a list of files (hundreds) in directory . and need to search through > and delete every file that contains the word foo. Assuming that "directory" means "directory tree" and that "word" means "string", this might work: find . -type f -print

Re: simple find command

2002-11-06 Thread Alex(ander Sendzimir)
06 at 12:24, Matthew Bettinger wrote: -BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I am having a bit of trouble with the find command. I am a novice in its use so maybe someone can help me out here. I have a list of files (hundreds) in directo

Re: simple find command

2002-11-06 Thread Dominik Lupinski
On Wed, Nov 06, 2002 at 11:24:19AM -0600, Matthew Bettinger wrote: > I am having a bit of trouble with the find command. I am a novice in its use > so maybe someone can help me out here. > > I have a list of files (hundreds) in directory . and need to search through > and de

simple find command

2002-11-06 Thread Matthew Bettinger
> I am having a bit of trouble with the find command. I am a novice in its >use so maybe someone can help me out here. Thanks for those that posted regarding the use of the find command. It's all about the -print0 and xargs -0 Matt To Unsubscribe: send mail to [EMAI

Re: simple find command

2002-11-06 Thread paul beard
Matthew Bettinger wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I am having a bit of trouble with the find command. I am a novice in its use so maybe someone can help me out here. I have a list of files (hundreds) in directory . and need to search through and delete every

Re: simple find command

2002-11-06 Thread Matthew Seaman
On Wed, Nov 06, 2002 at 11:24:19AM -0600, Matthew Bettinger wrote: > Hello, > > I am having a bit of trouble with the find command. I am a novice in its use > so maybe someone can help me out here. > > I have a list of files (hundreds) in directory . and need to search thr

Re: simple find command

2002-11-06 Thread Rob Ellis
On Wed, Nov 06, 2002 at 11:24:19AM -0600, Matthew Bettinger wrote: > I am having a bit of trouble with the find command. I am a novice in its use > so maybe someone can help me out here. > > I have a list of files (hundreds) in directory . and need to search through > and de

Re: simple find command

2002-11-06 Thread Dan Nelson
In the last episode (Nov 06), Matthew Bettinger said: > I am having a bit of trouble with the find command. I am a novice in > its use so maybe someone can help me out here. > > I have a list of files (hundreds) in directory . and need to search > through and delete every file th

simple find command

2002-11-06 Thread Matthew Bettinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I am having a bit of trouble with the find command. I am a novice in its use so maybe someone can help me out here. I have a list of files (hundreds) in directory . and need to search through and delete every file that contains the word