Re: Finding files not present (challenge to your intelligence)

1997-04-04 Thread David B. Teague
On Wed, 2 Apr 1997, Kevin Dalley wrote: : updatedb generates a database of all file names on the system. (It : only runs for a few minutes for my system.) runs quite a while on my 468 33 ;) Not of all files. Of files searchable by `nobody.nogroup'. You can run updatedb manually to

Re: Finding files not present (challenge to your intelligence)

1997-04-04 Thread Rick Macdonald
Not of all files. Of files searchable by `nobody.nogroup'. You can run updatedb manually to get a list of all files. Look at the options in the info page for more information. Actually, you can run updatedb by hand and keep the database private to root in some other protected

Re: Finding files not present (challenge to your intelligence)

1997-04-03 Thread Kevin Dalley
Heiko Schlittermann [EMAIL PROTECTED] writes: --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii On Mar 28, Kai Grossjohann wrote : Eloy A Paris writes: : : Eloy I was given a text file containing one file name (no full path : Eloy name) per line. My task consists of

Re: Finding files not present (challenge to your intelligence)

1997-04-01 Thread Heiko Schlittermann
On Mar 28, Kai Grossjohann wrote : Eloy A Paris writes: : : Eloy I was given a text file containing one file name (no full path : Eloy name) per line. My task consists of searching the entire : Eloy filesystem and generate a list of the files that are NOT : Eloy present. : : updatedb

Re: Finding files not present (challenge to your intelligence)

1997-03-28 Thread Kai Grossjohann
Eloy A Paris writes: Eloy I was given a text file containing one file name (no full path Eloy name) per line. My task consists of searching the entire Eloy filesystem and generate a list of the files that are NOT Eloy present. updatedb generates a database of all file names on the

Re: Finding files not present (challenge to your intelligence)

1997-03-27 Thread Nicolás Lichtmaier
On Wed, 26 Mar 1997, Philippe Troin wrote: Which can be abbreviated with zsh to: comm -1 -3 (sort searchlist) (find -type f -printf %f\n | sort) Hop ! No more cluttering, no more intermediate files. I love zsh's redirection ! Bash can also do that..! =b -- Nicolás Lichtmaier.- | From

Finding files not present (challenge to your intelligence)

1997-03-26 Thread Eloy A. Paris
Hi, I was given a text file containing one file name (no full path name) per line. My task consists of searching the entire filesystem and generate a list of the files that are NOT present. At first I thought this was a task easyly solved with a couple of awk's, sed's, and find's. However, it's

Finding files not present (challenge to your intelligence)

1997-03-26 Thread Eloy A. Paris
Hi, I was given a text file containing one file name (no full path name) per line. My task consists of searching the entire filesystem and generate a list of the files that are NOT present. At first I thought this was a task easyly solved with a couple of awk's, sed's, and find's. However, it's

Re: Finding files not present (challenge to your intelligence)

1997-03-26 Thread Martin Stromberg
Hi, I was given a text file containing one file name (no full path name) per line. My task consists of searching the entire filesystem and generate a list of the files that are NOT present. At first I thought this was a task easyly solved with a couple of awk's, sed's, and find's.

Re: Finding files not present (challenge to your intelligence)

1997-03-26 Thread Eloy A. Paris
Hi Martin, How about using find and generate a list of ALL files, then grep `indivual_lines_from_your_list` list_of_ALL_files and checking grep's return value? Well, what I am doing right now is generating a list of the files that are present (using find and redirecting its output to a

Re: Finding files not present (challenge to your intelligence)

1997-03-26 Thread Heiko Schlittermann
On Mar 26, Eloy A. Paris wrote : Hi, : : I was given a text file containing one file name (no full path name) : per line. My task consists of searching the entire filesystem and : generate a list of the files that are NOT present. 1. The perl solution: ---

Re: Finding files not present (challenge to your intelligence)

1997-03-26 Thread Eloy A. Paris
Hi, thank you very much for your solution; it is very sharp. I was doing things the hard way. I like the shell solution very much. Regards, Eloy.- On Mar 26, Eloy A. Paris wrote : Hi, : : I was given a text file containing one file name (no full path name) : per line. My task consists of

Re: Finding files not present (challenge to your intelligence)

1997-03-26 Thread Jens B. Jorgensen
Eloy A. Paris wrote: Hi Martin, How about using find and generate a list of ALL files, then grep `indivual_lines_from_your_list` list_of_ALL_files and checking grep's return value? Well, what I am doing right now is generating a list of the files that are present (using find and

Re: Finding files not present (challenge to your intelligence)

1997-03-26 Thread Philippe Troin
On Wed, 26 Mar 1997 16:39:39 +0100 Heiko Schlittermann ([EMAIL PROTECTED]) wrote: find -type f -printf %f\n | sort files.exist sort searchlist files.search comm -1 -3 files.exist files.search Which can be abbreviated with zsh to: comm -1 -3 (sort searchlist) (find