Hello,
I have the following find/grep line running just fine from a telnet
prompt on the server. I'm trying to include this line into a web app
using CFEXECUTE (ColdFusion) but can't get it to work. I know that a
compiled perl script would work since I'm already using some previously
written ones
Hello,
I'm not sure about the login or how I should approach what I want to
achieve. I require a script that does the following.
1. Search a directory and all sub-directories for a certain file
extension. (Ex. .txt)
2. Get the results of the above search and check "inside" each file for
a strin
Something like this?
#!/usr/bin/perl -w
#Syntax: test.pl "" ""
require 5.000;
use strict;
# Pass filename parameter
my $path = $ARGV[0];
my $num = $ARGV[1];
while ($line = <$path*.txt>) {
open (FILE, $line) or die "cannot open $line: $!\n";
while () {
if ($line =~ /$num/ {
mpilation errors.
-Original Message-
From: Gavin Henry [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 12:24 PM
To: beginners@perl.org
Subject: Re: Writing my first perl script
On Friday 06 May 2005 16:50, macromedia wrote:
> Something like this?
>
> #!/usr/bin/perl -w
>
19.
Execution of test.pl aborted due to compilation errors.
-Original Message-
From: Offer Kaye [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 12:19 PM
To: Perl Beginners
Subject: Re: How would I simulate this in Perl?
On 5/6/05, macromedia wrote:
> Hello,
>
> I have
aye [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 1:24 PM
To: Perl Beginners
Subject: Re: How would I simulate this in Perl?
On 5/6/05, macromedia wrote:
>
> I just tried it but get this error. What does it mean/
>
> > perl test.pl
> Global symbol "line" requires e
Hi,
I can't seem to get my script to sort properly. Below is my code along with a
sample input.txt file. I also have what the output.txt file should look like.
Also note any duplicate should be striped out
which seems to work ok.
Something is getting messed up when I have the numerials along
.
Test.Test.Test.Test.Test.Test.Test.Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test.
Test..
Test.
Test..
Test..
On Tue, 25 Jul 2006 21:32:26 -0400, macromedia wrote:
>Hi,
>I can't seem to get my script to sort properly. Below
Hi,
I have a file that I would like to read in then do the following:
- Read in each line and remove any duplicate text with tags
- Sort the file so all tag IDs are in sequential order
- Save the results to a different file name.
Can this be done easily? If so, how? I'm really a newbie at this
Hi,
I have a file that I would like to read in then do the following:
- Read in each line and remove any duplicate text with tags
- Sort the file so all tag IDs are in sequential order
- Save the results to a different file name.
Can this be done easily? If so, how? I'm really a newbie at this
10 matches
Mail list logo