split file



Hi,

I am new to perl.I have basic question about splitting a file into 2.

the input file= temp.hex

contents

4A
5F
C3
3D

is there a one liner to split this file into 2 files temp1.hex
containing

4A
5F


and temp2.hex having

C3
3D


Thanks in advance

SN
.



Relevant Pages

  • Re: split file
    ... On Babu wrote: ... the input file= temp.hex ... is there a one liner to split this file into 2 files temp1.hex ...
    (comp.lang.perl.misc)
  • Re: split file
    ... Babu wrote: ... the input file= temp.hex ... is there a one liner to split this file into 2 files temp1.hex ... can special-order certain sorts of tools at low cost and ...
    (comp.lang.perl.misc)