148509Scael.\" Copyright (c) 1990, 1991 Regents of the University of California. 248509Scael.\" All rights reserved. 319481Smckusick.\" 4*50661Scael.\" %sccs.include.redist.roff% 548509Scael.\" 6*50661Scael.\" @(#)split.1 6.4 (Berkeley) 07/29/91 748509Scael.\" 848509Scael.Dd 948509Scael.Dt SPLIT 1 10*50661Scael.Os 1148509Scael.Sh NAME 1248509Scael.Nm split 1348509Scael.Nd split a file into pieces 1448509Scael.Sh SYNOPSIS 1548509Scael.Nm split 1648509Scael.Op Fl Ns Ar n 1748509Scael.Op Fl b Ar bytes 18*50661Scael.Op Ar file Op Ar name 1948509Scael.Sh DESCRIPTION 2048509ScaelThe 2148509Scael.Nm split 2248509Scaelutility reads the given 2348509Scael.Ar file 2448509Scaeland splits it up in to 2548509Scaelsmaller files. 2648509Scael.Pp 2748509ScaelAvailable options: 2848509Scael.Bl -tag -width "bb bytesx" 2948509Scael.It Fl Ns Ar lines 3048509ScaelCreate files of length 3148509Scael.Fl Ns Ar n 3248509Scaellines long. 3348509Scael.It Fl b Ar bytes 3448509ScaelCreate files of length 3548509Scael.Ar bytes . 3648509ScaelIf no output file length is specified, the file size 3748509Scaelwill default to a lenght of 1000 lines. 3848509Scael.El 3948509Scael.Pp 4048509ScaelAvailable operands: 4148509Scael.Bl -tag -width name 4248509Scael.It Fl 4348509ScaelRead from the standard input. 4448509Scael.It Ar file 4548509ScaelA pathname specifying the 4648509Scael.Ar file 4748509Scaelto be split. If no 4848509Scael.Ar file 4948509Scaeloperand is given, 5048509Scael.Nm split 5148509Scaelreads from the standard input. 5248509Scael.It Ar name 5348509ScaelIf the 5448509Scael.Ar name 5548509Scaeloperand is given, 5648509Scaelthe output files will begin with the prefix 5748509Scael.Ar name 5848509Scaeland each sequential portion of the split file 5948509Scaelreceives a lexically ordered suffix 6048509Scaelin the range of 6148509Scael.Bq Em aa-zz . 6248509ScaelIf the operand 6348509Scael.Ar name 6448509Scaelis not specified, 6548509Scaelthe default prefix of 6648509Scael.Em x 6748509Scaelis be used. 6848509Scael.Pp 6948509Scael.Sh BUGS 7048509ScaelIf you provide 7148509Scael.Ar name , 7248509Scael.Nm split 7348509Scaelcan only create 676 separate 7430125Sbosticfiles. The default naming convention allows 2028 separate files. 7548509Scael.Sh HISTORY 7648509ScaelA 77*50661Scael.Nm split 7848509Scaelcommand appeared in 7948509Scael.At v6 . 80