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
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
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:
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
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
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
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
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/
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:
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
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:
> ---
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:
--
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
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,
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
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
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
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
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
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]
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
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
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
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/
> 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
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
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)',
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/
28 matches
Mail list logo