Re: Split a file

2002-11-07 Thread zentara
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 y

Re: Split a file

2002-11-06 Thread Robert Citek
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 remov

Re: Split a file

2002-11-05 Thread John W. Krahn
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 > 32

RE: Split a file

2002-11-04 Thread Timothy Johnson
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

Re: split a file

2001-08-22 Thread Ron Smith
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'

Re: split a file

2001-08-21 Thread Dan Grossman
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 o