Questions!
Hey-
A couple questions for you experts. Thanks for the answers.
1) What command would you use to synchronize two filesystems? How would you set it up to do so securely?
2) How would you go about locating all the files in a specific directory tree that contain the text "index.html"?
Thanks Everyone
BEGIN:VCARD
VERSION:2.1
N:Smallsreed;Scott
FN:Scott Smallsreed
TEL;HOME;VOICE:775-849-8411
TEL;HOME;FAX:775-849-8412
ADR;HOME:;;3030 Chipmunk Dr.;Washoe Valley;Nevada;89704;US LABEL;HOME;ENCODING=QUOTED-PRINTABLE:3030 Chipmunk Dr.=0D=0AWashoe Valley, Nevada 89704=0D=0AUS EMAIL;PREF;INTERNET:[email protected]
REV:20040331T202913Z
END:VCARD
I'd like to know a good answer on the first quest myself. As for the second, I think something like this would give you a list:
#grep -l 'index.html' /root/of/directory/tree/*
Quoted 13 lines · Scott@Charter wrote:
Hey-
A couple questions for you experts. Thanks for the answers.
1) What command would you use to synchronize two filesystems? How would you set it up to do so securely?
2) How would you go about locating all the files in a specific directory tree that contain the text "index.html"?
Thanks Everyone
i have a script that i wrote earlier year that will do part of it.
it is attached in a zip file with the readme and set up script.
any questions, please e-mail me.
any problems, let me know.
hal wigoda
----- Original Message -----
From: "Bradley Hook" <[email protected]>
To: <[email protected]>
Sent: Wednesday, March 31, 2004 2:36 PM
Subject: Re: Questions!
Quoted 13 lines
I'd like to know a good answer on the first quest myself. As for the second, I think something like this would give you a list:
#grep -l 'index.html'
/root/of/directory/tree/*Quoted 6 lines · Scott@Charter wrote:
Hey-
A couple questions for you experts. Thanks for the answers.
1) What command would you use to synchronize two filesystems? How would
you
Quoted 3 lines
Quoted 3 lines
set it up to do so securely?
2) How would you go about locating all the files in a specific
directory
Quoted 9 lines
Quoted 4 lines
tree that contain the text "index.html"?
Thanks Everyone
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
1) rsync
2) find <dirname> -print -type f | xargs grep -l index.html ----- Original Message -----
From: "Scott@Charter" <[email protected]>
To: "Linux-Admin-Group" <[email protected]>
Sent: Wednesday, March 31, 2004 2:29 PM
Subject: Questions!
Quoted 6 lines
Hey-
A couple questions for you experts. Thanks for the answers.
1) What command would you use to synchronize two filesystems? How would
you
Quoted 8 lines
set it up to do so securely?
2) How would you go about locating all the files in a specific directory tree that contain the text "index.html"?
Thanks Everyone
Quoted 2 lines · Hal Wigoda
1) rsync
2) find <dirname> -print -type f | xargs grep -l index.html
More simply:
2) find <dirname> -name index.html -print
Signature · 4 lines
Kevin J. Cummings [email protected] [email protected] [email protected]
no that is not right.
he wanted files that contained the text "index.html" not the files that had "index.html" in their name.
----- Original Message -----
From: "Kevin J. Cummings" <[email protected]>
To: "Hal Wigoda" <[email protected]>
Cc: "Scott@Charter" <[email protected]>; "Linux-Admin-Group" <[email protected]>
Sent: Wednesday, March 31, 2004 3:26 PM
Subject: Re: Questions!
Quoted 17 lines
Quoted 2 lines · Hal Wigoda
1) rsync
2) find <dirname> -print -type f | xargs grep -l index.htmlMore simply:
2) find <dirname> -name index.html -print
Signature · 8 lines
Kevin J. Cummings [email protected] [email protected] [email protected] - To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Oops, my bad!
Quoted 4 lines · Hal Wigoda
no that is not right.
he wanted files that contained the text "index.html" not the files that had "index.html" in their name.
Signature · 4 lines
Kevin J. Cummings [email protected] [email protected] [email protected]
Quoted 7 lines · Kevin J. Cummings
Quoted 2 lines · Hal Wigoda
1) rsync
2) find <dirname> -print -type f | xargs grep -l index.htmlMore simply:
2) find <dirname> -name index.html -print
As the question was:
# 2) How would you go about locating all the files in a specific
# directory tree that contain the text "index.html"?
^^^^^^^I would say Hal's answer is the correct one.
regards,
Christian
Quoted 1 line · Hal Wigoda
2) find <dirname> -print -type f | xargs grep -l index.html
Or, if you need to handle filenames which contain whitespace characters:
find <dirname> -type f -print0 | xargs -0 grep -l index.html
Signature · 1 line
Glynn Clements <[email protected]>
i always simply use:
grep -r index.html /some/path/*
Quoted 19 lines
Quoted 1 line · Hal Wigoda
2) find <dirname> -print -type f | xargs grep -l index.html
Or, if you need to handle filenames which contain whitespace characters:
find <dirname> -type f -print0 | xargs -0 grep -l index.html
--
Glynn Clements <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux- admin"
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
sorry, but that is NOT correct either.
he is looking for files that content the string "index.html" within the file,
NOT the file name.
----- Original Message -----
From: "urgrue" <[email protected]>
To: "admin" <[email protected]>
Sent: Thursday, April 01, 2004 1:50 AM
Subject: Re: Questions!
Quoted 28 lines
i always simply use:
grep -r index.html /some/path/*Quoted 9 lines
Quoted 1 line · Hal Wigoda
2) find <dirname> -print -type f | xargs grep -l index.html
Or, if you need to handle filenames which contain whitespace characters:
find <dirname> -type f -print0 | xargs -0 grep -l index.html
Quoted 10 lines
--
Glynn Clements <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux- admin"
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Must be April 1.
Try it, and you'll learn that gnu grep has the "-r" flag that lets you recurse into directories and that grep looks in files.
Quoted 16 lines · Hal Wigoda
sorry, but that is NOT correct either.
he is looking for files that content the string "index.html" within the file,
NOT the file name.----- Original Message -----
From: "urgrue" <[email protected]>
To: "admin" <[email protected]>
Sent: Thursday, April 01, 2004 1:50 AM
Subject: Re: Questions!Quoted 2 lines
i always simply use:
grep -r index.html /some/path/*
Signature · 2 lines
Hisashi T Fujinaka - [email protected] BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte
that's new to me.
thanks....
----- Original Message -----
From: "Hisashi T Fujinaka" <[email protected]>
To: "Hal Wigoda" <[email protected]>
Cc: "urgrue" <[email protected]>; "admin" <[email protected]>
Sent: Thursday, April 01, 2004 10:01 AM
Subject: Re: Questions!
Quoted 32 lines
Must be April 1.
Try it, and you'll learn that gnu grep has the "-r" flag that lets you recurse into directories and that grep looks in files.
Quoted 16 lines · Hal Wigoda
sorry, but that is NOT correct either.
he is looking for files that content the string "index.html" within the file,
NOT the file name.----- Original Message -----
From: "urgrue" <[email protected]>
To: "admin" <[email protected]>
Sent: Thursday, April 01, 2004 1:50 AM
Subject: Re: Questions!Quoted 2 lines
i always simply use:
grep -r index.html /some/path/*Signature · 6 lines
Hisashi T Fujinaka - [email protected] BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte - To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
i must be the fool then....
----- Original Message -----
From: "Hisashi T Fujinaka" <[email protected]>
To: "Hal Wigoda" <[email protected]>
Cc: "urgrue" <[email protected]>; "admin" <[email protected]>
Sent: Thursday, April 01, 2004 10:01 AM
Subject: Re: Questions!
Quoted 32 lines
Must be April 1.
Try it, and you'll learn that gnu grep has the "-r" flag that lets you recurse into directories and that grep looks in files.
Quoted 16 lines · Hal Wigoda
sorry, but that is NOT correct either.
he is looking for files that content the string "index.html" within the file,
NOT the file name.----- Original Message -----
From: "urgrue" <[email protected]>
To: "admin" <[email protected]>
Sent: Thursday, April 01, 2004 1:50 AM
Subject: Re: Questions!Quoted 2 lines
i always simply use:
grep -r index.html /some/path/*Signature · 6 lines
Hisashi T Fujinaka - [email protected] BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte - To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html