Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix : How to cut a file into pieces?
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-0329Received on Thu Jul 27 2000 - 17:19:40 CDT