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 this
I know the problem is solved but Could the script be done like this ??
#!/usr/bin/perl
use strict;
use warnings;
while (my $line =DATA ) {
chomp($line);
my ($out_file) = $line =~ m/^(\d+_\d+_\d+);/;
open (WRT,$out_file.log ) or die cannot opne file:
$!;
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?
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
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
use strict;
use warnings;
my %log;
while(DATA){
chomp;
my ($key, $value) = split /;/, $_;
push @{$log{$key}}, $value;
}
foreach my $k (keys %log){
open my $k_fh, '', $k.log or die Could not open the file - $k.log
: $! \n;
foreach my $v (@{$log{$k}}) {
print
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
One way would be to print each line to a different file and loop through the
input file:
open(INFILE,my.log) || die Couldn't open my.log!\n;
open(FILE1,file1) || die Couldn't open file1!\n;
open(FILE2,file2) || die Couldn't open file2!\n;
open(FILE3,file3) || die Couldn't open file3!\n;
Yet another way...:
-snip---
#!/usr/bin/perl -w
use strict;
open (FILE, file_with_headings.txt) ||
die Couldn't open \file_with_headings.txt\ $!\n;
open (DIALIGN, dialign.txt) ||
die Couldn't create
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
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
14 matches
Mail list logo