Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix : How to cut a file into pieces?

Re: Unix : How to cut a file into pieces?

From: Ken Komoto <kgkomoto_at_ucdavis.edu>
Date: Thu, 27 Jul 2000 15:19:40 -0700
Message-Id: <10571.113181@fatcity.com>


use combinations of head and tail and re-direct the output

head -10000 filename>filename2 puts 1st 10000 lines into filename2 tail +10001 filename|head -10000>filename3 puts next 10000 lines into=  filename3

etc....see man pages for more info

At 09:44 AM 7/27/00 -0800, Veronica Levin wrote:
>I was wondering if there is a way to cut a 63MB text file into small pieces
>without opening it with vi.
>
>Ver=F3nica Levin Enr=EDquez
>Administrador AIX
>Compa=F1=EDa Cervecera de Nicaragua
>Tel=E9fono: 505-2493779
>Fax: 505-2443979
>Email: vlevin_at_victoria.com.ni
>http://www.victoria.com.ni

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Kenneth Komoto			Email: kgkomoto_at_ucdavis.edu
Office of the Registrar	Phone: (530)752-7197
University of California	Fax  : (530)752-0329
Received on Thu Jul 27 2000 - 17:19:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US