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 and does not
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; *
#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
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
Robert
--- 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 Yahoo!?
Tired of
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 \*.html
Or
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
--- 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 \(
--- 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
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 . -not \(
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 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
--- 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 searching
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 understand
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
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 the
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.
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 *.jpg -print
Both of these work perfectly. But I
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/Pictures -iname *.gif -print
OR
find /multimedia
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 this.
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:
find /multimedia/Pictures -iname
-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
.jpg or .gif but I can't seem to get
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: 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 varies
- 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 the following note
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
___
- 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' Syntax
Hi Drew,
This should find all files created or modified on 25th
:
- 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' Syntax
Hi Drew,
This should find all files created or modified
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 ``more
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
31 matches
Mail list logo