On Oct 16, 10:41 am, shlo...@iglu.org.il (Shlomi Fish) wrote:
On Thursday 14 October 2010 16:54:32 yo RO wrote:
Hello I need to split a log file per days
I have a file in txt format and I want to create a file with all data
from one day in one file
I will give example
I have
info
On Sat, Oct 16, 2010 at 2:11 PM, Shlomi Fish shlo...@iglu.org.il wrote:
On Thursday 14 October 2010 16:54:32 yo RO wrote:
Hello I need to split a log file per days
I have a file in txt format and I want to create a file with all data
from one day in one file
I will give example
I
On Sat, Oct 16, 2010 at 2:11 PM, Shlomi Fish shlo...@iglu.org.il wrote:
On Thursday 14 October 2010 16:54:32 yo RO wrote:
Hello I need to split a log file per days
I have a file in txt format and I want to create a file with all data
from one day in one file
I will give example
I
Hi Agnello,
On Monday 18 October 2010 15:01:56 Agnello George wrote:
I know the problem is solved but Could the script be done like this ??
OK, I'll answer it.
#!/usr/bin/perl
use strict;
use warnings;
while (my $line =DATA ) {
Why are you using *DATA and __DATA__ for the data?
Hello I need to split a log file per days
I have a file in txt format and I want to create a file with all data
from one day in one file
I will give example
I have this imput
3_21_2010;11:12\\trafic info
3_21_2010;11:34\\trafic info
3_21_2010;13:21\\trafic info
3_22_2010;11:12\\trafic info
On Thu, Oct 14, 2010 at 4:54 PM, yo RO lyn...@gmail.com wrote:
Hello I need to split a log file per days
I have a file in txt format and I want to create a file with all data
from one day in one file
I will give example
I have this imput
3_21_2010;11:12\\trafic info
3_21_2010;11:34
On Thursday 14 October 2010 16:54:32 yo RO wrote:
Hello I need to split a log file per days
I have a file in txt format and I want to create a file with all data
from one day in one file
I will give example
I have this imput
3_21_2010;11:12\\trafic info
3_21_2010;11:34\\trafic info
3_23_2010;11:34\\trafic info
3_23_2010;13:21\\trafic info
3_23_2010;13:21\\trafic info
3_24_2010;11:12\\trafic info
3_24_2010;11:34\\trafic info
3_24_2010;13:21\\trafic info
Cheers,
Parag
On Thu, Oct 14, 2010 at 7:54 AM, yo RO lyn...@gmail.com wrote:
Hello I need to split a log file per days
I have
Thanks to everyone for your suggestions
I replaced the INPUT_RECORD_SEPARATOR ($/) as suggested
My script is working great!!
Thanks Very Much!!!
Steve
Robert Citek [EMAIL PROTECTED] 7/26/2006 5:06 PM
On Jul 26, 2006, at 2:59 PM, Steve Pittman wrote:
I am using activestate on a
Robert Citek schreef:
Try a different value for the INPUT_RECORD_SEPARATOR ($/):
$/ = \n ;
(spaces added for clarity)
Is that different from the default?
(see perlvar)
--
Affijn, Ruud
Gewoon is een tijger.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
On Fri, 2006-07-28 at 21:28 +0200, Dr.Ruud wrote:
Robert Citek schreef:
Try a different value for the INPUT_RECORD_SEPARATOR ($/):
$/ = \n ;
(spaces added for clarity)
Is that different from the default?
(see perlvar)
Using ActiveState on Windows it is.
--
Joshua Colson [EMAIL
On Jul 28, 2006, at 9:50 PM, Joshua Colson wrote:
On Fri, 2006-07-28 at 21:28 +0200, Dr.Ruud wrote:
Robert Citek schreef:
Try a different value for the INPUT_RECORD_SEPARATOR ($/):
$/ = \n ;
(spaces added for clarity)
Is that different from the default?
(see perlvar)
Using ActiveState
On Fri, 2006-07-28 at 22:00 +0200, Xavier Noria wrote:
That's wrong.
$/ is eq \n everywhere, and \n has length 1 everywhere. \n is
eq \012 in all systems except MacOS pre-X where it is eq \015. In
particular \n is *not* CRLF on Windows.
My article about newlines is moving forward at
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, $_[0] )||die Can't open DAT source file: $tempFile
$!\n;
while (IN){s/\r/\n/g;@lines = IN;}#
close (IN);
foreach $line (@lines)
{
--
To
On Jul 26, 2006, at 21:59, Steve Pittman wrote:
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, $_[0] )||die Can't open DAT source file: $tempFile
$!\n;
while (IN){s/\r/\n/g;@lines = IN;}#
close (IN);
Steve Pittman wrote:
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, $_[0] )||die Can't open DAT source file: $tempFile $!\n;
while (IN){s/\r/\n/g;@lines = IN;}
close (IN);
foreach $line (@lines)
{
Your code
On Jul 26, 2006, at 2:59 PM, Steve Pittman wrote:
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, $_[0] )||die Can't open DAT source file: $tempFile
$!\n;
while (IN){s/\r/\n/g;@lines = IN;}#
close (IN);
On 07/26/2006 02:59 PM, Steve Pittman wrote:
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, $_[0] )||die Can't open DAT source file: $tempFile
$!\n;
while (IN){s/\r/\n/g;@lines = IN;}#
close (IN);
On Wed, 06 Nov 2002 10:17:00 -0600, [EMAIL PROTECTED] (Robert
Citek) wrote:
I am trying to take a file of variable length on a daily basis and
divide it up into 4 equal parts for processing on each file. Does
someone have an easy way to do this?
Below is a sample script which may lead you in
Hello Johnny,
At 12:31 PM 11/4/2002 -0500, Johnny Hall wrote:
I am trying to take a file of variable length on a daily basis and
divide it up into 4 equal parts for processing on each file. Does
someone have an easy way to do this?
Did not read your attachment since my mail processor removes
Johnny Hall wrote:
Hello all,
Hello,
I am trying to take a file of variable length on a daily basis and
divide it up into 4 equal parts for processing on each file. Does
someone have an easy way to do this?
The original file is just a series of numbers like..
3233404936
3233404934
Hello all,
I am trying to take a file of variable length on a daily basis and
divide it up into 4 equal parts for processing on each file. Does
someone have an easy way to do this?
The original file is just a series of numbers like..
3233404936
3233404934
3233669122
3233557761
3233818369
, but it would be difficult to break it up by lines. I'm not the
expert at sysread, or I'd give you an example.
-Original Message-
From: Johnny Hall
To: PERL Beginners
Sent: 11/4/02 9:31 AM
Subject: Split a file
Hello all,
I am trying to take a file of variable length on a daily basis
PROTECTED]
Subject: split a file
Date: Tue, 21 Aug 2001 18:24:44 -0400
Hi All, I have a file (see below) that I would like to split in three
files: One file for the information under Alignment (DIALIGN
format), another for the information under the line Alignment (FASTA
format) and a third one
Hi All, I have a file (see below) that I would like to split in three
files: One file for the information under Alignment (DIALIGN
format), another for the information under the line Alignment (FASTA
format) and a third one for the information under sequence tree.
Any help to do this will be
Pedro,
On Tue, 21 Aug 2001, Pedro A Reche Gallardo wrote:
Hi All, I have a file (see below) that I would like to split in three
files: One file for the information under Alignment (DIALIGN
format), another for the information under the line Alignment (FASTA
format) and a third one for
Hi All, I have a file (see below) that I would like to split in three
files: One file for the information under Alignment (DIALIGN
format), another for the information under the line Alignment (FASTA
format) and a third one for the information under sequence tree.
Any help to do this will be
Hi,
I am trying to split apart a log file. However, it doesn't seem to be working. Can
anyone give me some help? I am still trying to figure out how split works. It seems
to work up to the browser, but after that I seem to be having trouble.
Thanks in advance,
Katie
---
ipaddr
for using split, try to remove the ( ) since you will not be needing $1
through $9. I suspect because you have many ( ) in there, this might
cause a problem. I also gather that you are trying not to really split,
but to pattern match, in which case you can only have from $1-$9 (i
belive that is
29 matches
Mail list logo