Re: find syntax

2006-07-05 Thread Xian
On Tuesday 04 July 2006 08:59, dick hoogendijk wrote: > I want to change a string in a number of html files (recursive) > > In a linux group I got this line: > > #find /dir/to/htmlfile -name *.html -exec perl -p -i -e > "s/nagual.st/nagual.nl/g;" {} \; > > This gives me an error "unknown option" an

Re: find syntax

2006-07-04 Thread dick hoogendijk
On Tue, 4 Jul 2006 15:10:05 -0400 (EDT) Peter <[EMAIL PROTECTED]> wrote: > > --- Olivier Nicole <[EMAIL PROTECTED]> wrote: > > > > #find /dir/to/htmlfile -name *.html -exec perl -p -i -e > > > "s/nagual.st/nagual.nl/g;" {} \; > > > > You should escape the * that you pass to find: > > > > -name

Re: find syntax

2006-07-04 Thread Peter
--- Olivier Nicole <[EMAIL PROTECTED]> wrote: > > #find /dir/to/htmlfile -name *.html -exec perl -p -i -e > > "s/nagual.st/nagual.nl/g;" {} \; > > You should escape the * that you pass to find: > > -name \*.html Or -name "*.html" __ Do You Yaho

Re: find syntax

2006-07-04 Thread Robert Huff
Olivier Nicole writes: > > #find /dir/to/htmlfile -name *.html -exec perl -p -i -e > > "s/nagual.st/nagual.nl/g;" {} \; > > You should escape the * that you pass to find: > > -name \*.html Or quote it: find /dir/to/htmlfile -name "*.html"

Re: find syntax

2006-07-04 Thread Olivier Nicole
> #find /dir/to/htmlfile -name *.html -exec perl -p -i -e > "s/nagual.st/nagual.nl/g;" {} \; You should escape the * that you pass to find: -name \*.html Most probably. olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/ma

find syntax

2006-07-04 Thread dick hoogendijk
I want to change a string in a number of html files (recursive) In a linux group I got this line: #find /dir/to/htmlfile -name *.html -exec perl -p -i -e "s/nagual.st/nagual.nl/g;" {} \; This gives me an error "unknown option" and does not work. Doing a: perl -p -i -e "s/nagual.st/nagual.nl/g;"

Re: Find Syntax

2006-01-02 Thread Drew Tomlinson
On 1/2/2006 9:59 AM Kevin Brunelle said the following: OK, I understand now. I ultimately want to delete files and was just trying to check my command before doing the actual delete. I will use '-ls' in my script. find . -type f -mtime +1w -exec ls -l {} \; This works too. Than

Re: Find Syntax

2006-01-02 Thread Kevin Brunelle
> OK, I understand now. I ultimately want to delete files and was just > trying to check my command before doing the actual delete. I will use > '-ls' in my script. > > >find . -type f -mtime +1w -exec ls -l {} \; > > This works too. Thanks again! What is your intent with the -ls? Do you need

Re: Find Syntax

2006-01-02 Thread Drew Tomlinson
On 1/2/2006 9:14 AM Adam Nealis said the following: --- Drew Tomlinson <[EMAIL PROTECTED]> wrote: On 1/2/2006 8:37 AM Kevin Brunelle said the following: On Monday 02 January 2006 11:19, Drew Tomlinson wrote: I'm trying to find all files with a modification time older than t

Re: Find Syntax

2006-01-02 Thread Drew Tomlinson
On 1/2/2006 8:36 AM Peter said the following: --- Drew Tomlinson <[EMAIL PROTECTED]> wrote: I'm trying to find all files with a modification time older than three weeks ago. find . -mtime +3w Thanks for your reply. This worked for 3 weeks but not for 1 week. I don't understan

Re: Find Syntax

2006-01-02 Thread Adam Nealis
--- Drew Tomlinson <[EMAIL PROTECTED]> wrote: > On 1/2/2006 8:37 AM Kevin Brunelle said the following: > > >On Monday 02 January 2006 11:19, Drew Tomlinson wrote: > > > > > >>I'm trying to find all files with a modification time older than three > >>weeks ago. In reading the find man page and

Re: Find Syntax

2006-01-02 Thread Drew Tomlinson
On 1/2/2006 8:35 AM Adam Nealis said the following: --- Drew Tomlinson <[EMAIL PROTECTED]> wrote: I'm trying to find all files with a modification time older than three weeks ago. In reading the find man page and searching Google, it seems the time returned by 'ls -l' is mtime. Thus I co

Re: Find Syntax

2006-01-02 Thread Drew Tomlinson
On 1/2/2006 8:37 AM Kevin Brunelle said the following: On Monday 02 January 2006 11:19, Drew Tomlinson wrote: I'm trying to find all files with a modification time older than three weeks ago. In reading the find man page and searching Google, it seems the time returned by 'ls -l' is mtime.

Re: Find Syntax

2006-01-02 Thread Kevin Brunelle
On Monday 02 January 2006 11:19, Drew Tomlinson wrote: > I'm trying to find all files with a modification time older than three > weeks ago. In reading the find man page and searching Google, it seems > the time returned by 'ls -l' is mtime. Thus I construct the following > command: > > find . -n

Re: Find Syntax

2006-01-02 Thread Peter
--- Drew Tomlinson <[EMAIL PROTECTED]> wrote: > I'm trying to find all files with a modification time older than three > weeks ago. find . -mtime +3w __ Find your next car at http://autos.yahoo.ca ___

Re: Find Syntax

2006-01-02 Thread Adam Nealis
--- Drew Tomlinson <[EMAIL PROTECTED]> wrote: > I'm trying to find all files with a modification time older than three > weeks ago. In reading the find man page and searching Google, it seems > the time returned by 'ls -l' is mtime. Thus I construct the following > command: > > find . -not \

Find Syntax

2006-01-02 Thread Drew Tomlinson
I'm trying to find all files with a modification time older than three weeks ago. In reading the find man page and searching Google, it seems the time returned by 'ls -l' is mtime. Thus I construct the following command: find . -not \( -newermt 3w \) -exec ls -l {} \; But it returns files t

Re: Help With Find Syntax

2005-10-14 Thread Glenn Sieb
Drew Tomlinson said the following on 10/14/2005 3:13 PM: > OK, duh. I get it now. Thanks for pointing me in the right direction! Quite welcome! Enjoy!! Best, --Glenn -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."

RE: Help With Find Syntax

2005-10-14 Thread Mark J. Sommer
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Drew Tomlinson > Sent: 10/14/2005 12:54 PM > To: FreeBSD Questions > Subject: Help With Find Syntax > > I want to recursively search a directory and return files that end in ".

Re: Help With Find Syntax

2005-10-14 Thread Drew Tomlinson
On 10/14/2005 12:05 PM Glenn Sieb wrote: Drew Tomlinson said the following on 10/14/2005 2:53 PM: I want to recursively search a directory and return files that end in ".jpg" or ".gif" but I can't seem to get the find syntax right. My basic command lines are:

Re: Help With Find Syntax

2005-10-14 Thread Charles Swiger
On Oct 14, 2005, at 2:53 PM, Drew Tomlinson wrote: $ find /multimedia/Pictures -iname "*.gif" -or "*.jpg" -print find: paths must precede expression Usage: find [path...] [expression] I've tried various placement of quotes, parenthesis, etc. but can't seem to find the right way to do th

Re: Help With Find Syntax

2005-10-14 Thread Glenn Sieb
Drew Tomlinson said the following on 10/14/2005 2:53 PM: > I want to recursively search a directory and return files that end in > ".jpg" or ".gif" but I can't seem to get the find syntax right. My > basic command lines are: > > find /multimedia/Pictur

Help With Find Syntax

2005-10-14 Thread Drew Tomlinson
I want to recursively search a directory and return files that end in ".jpg" or ".gif" but I can't seem to get the find syntax right. My basic command lines are: find /multimedia/Pictures -iname "*.gif" -print OR find /multimedia/Pictures -iname "*.j

Re: Help With 'find' Syntax -- SOLVED

2003-11-01 Thread Drew Tomlinson
Thank you to everyone for all your help! Something must have 'puked' during my nightly cvsup of the ports tree. Every directory under /usr/ports had a sysctl.core file. By deleting these files, I recovered my disk space. Thanks again! Drew ___ [EMAI

Re: Help With 'find' Syntax

2003-11-01 Thread Drew Tomlinson
> - Original Message - > From: "Malcolm Kay" <[EMAIL PROTECTED]> > To: "David Carter-Hitchin" <[EMAIL PROTECTED]>; "Drew > Tomlinson" <[EMAIL PROTECTED]> > Sent: Friday, October 31, 2003 4:44 PM > > On Sat, 1 Nov 2003 11:34, David Carter-Hitchin wrote: > > Hi Drew, > [snip] > > You may find

Re: Help With 'find' Syntax

2003-11-01 Thread Drew Tomlinson
- Original Message - From: "David Carter-Hitchin" <[EMAIL PROTECTED]> To: "Drew Tomlinson" <[EMAIL PROTECTED]> Sent: Friday, October 31, 2003 5:04 PM > Hi Drew, > > Find is one of those classic commands for confusing people. One just gets > used to it over time. The behaviour of find va

Re: Help With 'find' Syntax

2003-10-31 Thread Malcolm Kay
On Sat, 1 Nov 2003 11:34, David Carter-Hitchin wrote: > Hi Drew, [snip] > You may find the following note from man find helpful: > > # All primaries which take a numeric argument allow the number to be pre- > # ceded by a plus sign (``+'') or a minus sign (``-''). A preceding plus > # sign means `

Re: Help With 'find' Syntax

2003-10-31 Thread David Carter-Hitchin
'2' before the permissions). HTH, David On Fri, 31 Oct 2003, Drew Tomlinson wrote: > - Original Message - > From: "David Carter-Hitchin" <[EMAIL PROTECTED]> > To: "Drew Tomlinson" <[EMAIL PROTECTED]> > Cc: "FreeBSD Questions&quo

Re: Help With 'find' Syntax

2003-10-31 Thread Drew Tomlinson
- Original Message - From: "David Carter-Hitchin" <[EMAIL PROTECTED]> To: "Drew Tomlinson" <[EMAIL PROTECTED]> Cc: "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Thursday, October 30, 2003 5:55 PM Subject: Re: Help With 'find' Syn

Re: Help With 'find' Syntax

2003-10-30 Thread David Carter-Hitchin
Hi Drew, This should find all files created or modified on 25th October: find / -mtime 6 -ls -o -ctime 6 -ls (As today is 31st October which is 6 days after 25th. You may need to widen your search a little with a seperate search with 7 as the paramter as 6 may not catch files that were created

Help With 'find' Syntax

2003-10-29 Thread Drew Tomlinson
On October 25, my /usr partition lost nearly 50% of it's available space. This disk hasn't had any significant size changes since I built the system as it basically serves as a gateway. I'm trying to use the find command to determine what may have been written to the disk but am not having any luc