Re: help on file search

2013-11-10 Thread Shlomi Fish
Hi all, On Sun, 10 Nov 2013 19:14:22 -0500 Shawn Wilson wrote: > File::Find also see find2perl > File::Find is OK for that and is a core module, but it has some severe philosophical design limitations, and has a user-hostile interface. Here are some alternatives: http://perl-begin.org/topics

Re: help on file search

2013-11-10 Thread Shawn Wilson
File::Find also see find2perl Rahim Fakir wrote: >Iam looking for a module or a script that when running the script.pl, I >have to write the name of a file and it searches in my C: drive. >Best regards >Ray > > > > > >-- >*Nome: Rahim Gulamo Nabi Mussa Fakir* > > > > > > > > > >*Morada:Rua Gilb

help on file search

2013-11-10 Thread Rahim Fakir
Iam looking for a module or a script that when running the script.pl, I have to write the name of a file and it searches in my C: drive. Best regards Ray -- *Nome: Rahim Gulamo Nabi Mussa Fakir* *Morada:Rua Gilberto Freyre Lote 748 1º Esquerdo1950-357 Marvila-LisboaPortugalTelefone:

Re: Read line by line from a file & search each line on another file

2010-03-13 Thread John W. Krahn
manu wrote: Want to do a perl program - Read from file 1 - line1, line2etc Search line1 on file2 (all lines) Then Search line 2 on file 2... Ouput results of search. perldoc -q "How can I read in an entire file all at once" perldoc -q "How do I efficiently match many regular expressions

Re: Read line by line from a file & search each line on another file

2010-03-13 Thread Shawn H Corey
manu wrote: > Want to do a perl program - > > Read from file 1 - line1, line2etc > Search line1 on file2 (all lines) > Then Search line 2 on file 2... > > Ouput results of search. > > What code do you have so far? -- Just my 0.0002 million dollars worth, Shawn Programming is as m

Read line by line from a file & search each line on another file

2010-03-13 Thread manu
Want to do a perl program - Read from file 1 - line1, line2etc Search line1 on file2 (all lines) Then Search line 2 on file 2... Ouput results of search. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.or

Re: File search program!

2008-06-20 Thread Paul Lalli
On Jun 19, 2:07 pm, [EMAIL PROTECTED] (Gunwant Singh) wrote: > Paul, > > I did not rewrite any windows program Yes you did. You rewrote the command `dir /s`, which does exactly what your program does. I'm not saying it was your *intent* to rewrite dir /s. I'm saying that's what your program do

Re: File search program!

2008-06-20 Thread Dr.Ruud
Gunwant Singh schreef: > find(\&Wanted, '\/'); Why would you want to escape a slash? There is no need, and it looks ugly too. :) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: File search program!

2008-06-19 Thread John W. Krahn
Gunwant Singh wrote: Hi all, Hello, I wrote a code that can search any file/folder on a PC given that you must give the file name with its extension. The code works fine. Any suggestions to make the code better or faster. Here is the code:

Re: File search program!

2008-06-19 Thread Gunwant Singh
Paul, I did not rewrite any windows program but just thought of coding such a program. That code which you re-wrote was good actually, except for the backslash which you missed , as in the following: find(\&Wanted, '\/'); I will be re-writing the same code without the File::Find module. I

Re: File search program!

2008-06-19 Thread Paul Lalli
On Jun 19, 12:16 pm, [EMAIL PROTECTED] (Gunwant Singh) wrote: > Hi all, > > I wrote a code that can search any file/folder on a PC given that you > must give the file name with its extension. > The code works fine. Any suggestions to make the code better or faster. > Here is the code: > ---

File search program!

2008-06-19 Thread Gunwant Singh
Hi all, I wrote a code that can search any file/folder on a PC given that you must give the file name with its extension. The code works fine. Any suggestions to make the code better or faster. Here is the code: --

Re: file search containing string

2007-09-25 Thread Paul Lalli
On Sep 24, 4:46 pm, [EMAIL PROTECTED] (Nishi Bhonsle) wrote: > How can I use perl to do the following - > > --Look for a file on a filesystem containing a string such as > "Product Name 1.0.0.0.0" perldoc File::Find perldoc perlretut > --Then get the disk location path of the file and store the

file search containing string

2007-09-24 Thread Nishi Bhonsle
Hi: How can I use perl to do the following - --Look for a file on a filesystem containing a string such as "Product Name 1.0.0.0.0" --Then get the disk location path of the file and store the path in a variable. --Pass the variable to an external java program. Thanks a lot! -- To unsubscribe,

Re: read file, search for a string, write results

2007-07-07 Thread Paul Lalli
On Jul 7, 6:16 am, [EMAIL PROTECTED] wrote: > I am new to perl and would like to: > > 1. read preprocessed source code in multiple directories > 2. searching these files for #line > 3. build non duplicate array of path/filenames that follow #line > 4. write results to a file > > Any direction, poin

read file, search for a string, write results

2007-07-07 Thread nomadcanuck
I am new to perl and would like to: 1. read preprocessed source code in multiple directories 2. searching these files for #line 3. build non duplicate array of path/filenames that follow #line 4. write results to a file Any direction, pointers, references or assistance would be greatfully appreci

Re: File search.

2006-04-27 Thread hridyesh pant
which one is more efficient to search a file File::Find or File::glob Regards Hridyesh John W. Krahn wrote: hridyesh pant wrote: Hi, Hello, I want to search a particular file inside the the first level of directories. like i have the directories like /usr/local/bin, /usr/packa

Re: File search.

2006-04-26 Thread John W. Krahn
hridyesh pant wrote: > Hi, Hello, > I want to search a particular file inside the the first level of > directories. > like i have the directories like /usr/local/bin, /usr/package/bin , > /usr/lib/samba etc > i want to search a file only inside the first level of directories like > /usr/loca

File search.

2006-04-26 Thread hridyesh pant
Hi, I want to search a particular file inside the the first level of directories. like i have the directories like /usr/local/bin, /usr/package/bin , /usr/lib/samba etc i want to search a file only inside the first level of directories like /usr/local,/usr/package,/usr/lib etc.. I check wi

Re: File search (Help!!!!!)

2002-11-11 Thread badchoice
this is better, i just wanted to be smart :-) #!perl @command = ('echo 1', 'echo 2', 'echo 3'); -f "/dir$_/file/search/filename" || system($command[$_-1]) for 1..3 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: File search (Help!!!!!)

2002-11-10 Thread John W. Krahn
Silverfox wrote: > > Hi all, I'm looking for the best way to search/test multiple directories > for a specific file and exec a command depending on which directory is > missing the file. any advice? > > ex: > (I'm searching for "filename" in the follow

Re: File search (Help!!!!!)

2002-11-10 Thread badchoice
On Sun, 10 Nov 2002 11:27:17 -0500 SilverFox <[EMAIL PROTECTED]> wrote: > Hi all, I'm looking for the best way to search/test multiple directories > for a specific file and exec a command depending on which directory is > missing the file. any advice? #!perl @command = ('echo 1', 'echo 2', 'ec

Re: File search (Help!!!!!)

2002-11-10 Thread Wiggins d'Anconia
e directories for a specific file and exec a command depending on which directory is missing the file. any advice? ex: (I'm searching for "filename" in the following dir) /dir1/file/search /dir2/file/search /dir3/file/search/filename command: we need to know which directory the file

File search (Help!!!!!)

2002-11-10 Thread SilverFox
Hi all, I'm looking for the best way to search/test multiple directories for a specific file and exec a command depending on which directory is missing the file. any advice? ex: (I'm searching for "filename" in the following dir) /dir1/file/search /dir2/file/search /dir3/

RE: File Search - String Match - String Count

2002-05-13 Thread David Gray
> I am trying to accomplish the following and have been unable > to find a good > routine (or build one) which does an adequate job. > > 1. Paste a big text file into an html text box which contains email > addresses scattered throughout. You can use the CGI module for this. I'm not sure of

File Search - String Match - String Count

2002-05-10 Thread Gregory Matthews
Hello All: I am trying to accomplish the following and have been unable to find a good routine (or build one) which does an adequate job. 1. Paste a big text file into an html text box which contains email addresses scattered throughout. 2. Upon form submission, perl routine will put that te

Re: newbie: help with file search

2001-07-16 Thread Ondrej Par
Well, are you trying to find several patterns (file1, file2 etc.) in all files in $dirname, or are you trying to determine wether those file1, file2 etc. exists in $dirname directory? it's not clear from your code anyway, one more note: you don't need to test 'defined(@files=readdir DIR)',

newbie: help with file search

2001-07-16 Thread Groove Salad
Hello Everyone: I'm trying determine the best way to check if a file name is contained within a couple of larger files. I can do a grep from the command line but, what's the fun of that!? Plus there's about a hundred files which would be tedious. Here's my coding attempt: $dirname = "/var/