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
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
--- 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
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"
> #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
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;"
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
> 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
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
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
--- 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
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
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.
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
--- 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
___
--- 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 \
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
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."
> -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
".
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:
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
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
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
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
> - 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
- 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
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 `
'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
- 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
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
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
31 matches
Mail list logo