AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
CSPLIT ( 1) CSPLIT ( l ) Regular expressions may not contain embedded new-lines. Csplit does not affect the original file; it is the users responsibility to remove it. EXAMPLES csplit -f cobol file '/procedure division/' jpar5./ jpar16./ This example creates four files, cobolOO • • • cobol03. After editing the "split" files, they can be recombined as follows: cat cobol0[0-3] > file Note that this example overwrites the original file. csplit -k file 100 {99} This example would split the file at every 100 lines, up to 10,000 lines. The -k option causes the created files to be retained if there are less than 10,000 lines; however, an error message would still be printed. csplit -k prog.c '%main(%' '/'}/+11 {20} Assuming that prog.c follows the normal C coding convention of ending routines with a } at the beginning of the line, this example will create a file containing each separate C routine (up to 21) in prog.c. SEE ALSO ed( 1), sh(l), regexp(5). DIAGNOSTICS Self explanatory except for: arg - out of range which means that the given argument did not reference a line between the current position and the end of the file. - 2-
CU ( lC ) CU ( lC ) NAME cu - call another UNIX system SYNOPSIS cu [ -sspeed ] [ -lline ] [ -h ] [ -t ] [ -d ] [ -m] [-ol -e ] telno I dir DESCRIPTION Cu calls up another UNIX system, a terminal, or possibly a non UNIX system. It manages an interactive conversation with possible transfers of ASCII files. Speed gives the transmission speed ( llO, 150, 300, 600, 1200, 4800, 9600); 300 is the default value. Most of our modems are either 300 or 1200 baud. For dial out lines, cu will choose a modem speed (300 or 1200) as the slowest available which will handle the specified transmission speed. Directly connected lines may be set to speeds higher than 1200 baud. The -1 value may be used to specify a device name for the communications line device to be used. This can be used to override searching for the first available line having the right speed. The -s option allows the user to override the line speed specified in the file fusr/lib/uucpfL-devices. However, if the -s option is not used, the line speed will be taken from the L-devices file. The -h option emulates local echo, supporting calls to other computer systems which expect terminals to be in half-duplex mode. The -t option is used when dialing an ASCII terminal which has been set to auto-answer. Appropriate mapping of carriage-returns to carriage-return-line-feed pairs is set. The -d option cause diagnostic traces to be printed. The -m option specifies a direct line which has modem control. The -e ( -o) option designates that even (odd) parity is to be generated for data sent to the remote. The -d option causes diagnostic traces to be printed. Telno is the telephone number, with '=' (equal signs) for secondary dial tone. ':' (colons) for pausing 10 seconds, and for pausing 2 seconds at appropriate places. The string dir for telno may be used for directly connected lines, and implies a null ACU. Using dir insures that a line has been specified by the -1 option. When using the internal modem line, phO and ph1 make sure the phone status of the line to be used shows DATA, otherwise the call will fail. The phone line supports 300 and 1200 for the -s option. Cu will try each line listed in the file fusrflibfuucpfL-devices until it finds an available line with appropriate attributes or runs out of entries. After making the connection, cu runs as two processes: the transmit process reads data from the standard input and, except for lines beginning with -, passes it to the remote system; the receive process accepts data from the remote system and, except for lines beginning with -, passes it to the standard output. Normally, an automatic DC3/DC1 protocol is used to control input from the remote so the buffer is not overrun. Lines beginning with - have special meanings. - 1 -
- Page 205 and 206: BFS (I) BFS(I) NAME bfs - big file
- Page 207 and 208: BFS (l) BFS (l) could be used to ma
- Page 209: CAL ( 1) CAL(l) NAME cal - print ca
- Page 212 and 213: ' ..
- Page 215 and 216: ;� CC ( l ) cc (1) NAME cc - C co
- Page 217: CC(l) /lib/crts.o /lib/mcrto.o /lib
- Page 221 and 222: CDC ( 1 ) CDC { 1) NAME cdc - chang
- Page 223: CDC (l) CDC (l) SEE ALSO admin( l),
- Page 226 and 227: CFLOW ( 1) CFLOW ( 1) produces the
- Page 228 and 229: CFONT(l) (AT&T UNIX PC only ) CFONT
- Page 231: CHOWN (l) CHOWN ( 1) NAME chown, ch
- Page 234 and 235: .'�
- Page 236 and 237: I I I I I I I I I I I I I I I I I I
- Page 238 and 239: COL(l) COL(l) BUGS Cannot back up m
- Page 240 and 241: COMB(l) COMB(l) FIT..ES s.COMB The
- Page 243 and 244: CP ( 1) CP ( 1) NAME cp, In, mv - c
- Page 245 and 246: CPIO ( 1 ) CPIO ( 1) NAME cpio - co
- Page 247: CPIO ( 1) CPIO ( 1) track of them a
- Page 250 and 251: CPP ( 1) CPP (1) Two special names
- Page 253 and 254: CRYPT { l ) ( Domestic Version Only
- Page 255: CSPLIT ( 1) CSPLIT (l) NAME csplit
- Page 259: CU(lC) CU ( lC ) BUGS Cu buffers in
- Page 262 and 263: CUT ( 1) CUT(l) DIAGNOSTICS line to
- Page 264 and 265: CW(l) CW (l) .OW Start of text to b
- Page 266 and 267: CW (l) CW (l) Documents that contai
- Page 268 and 269: .� .• \ __ }
- Page 270 and 271: DATE(l) DATE(l) DIAGNOSTICS No perm
- Page 272 and 273: DC( 1) DC (1) x =x The top two elem
- Page 275 and 276: DD ( 1 ) DD ( 1) NAME dd - convert
- Page 277 and 278: � I DELTA ( l ) DELTA (I) NAME de
- Page 279 and 280: DELTA ( 1) DELTA (!) WARNINGS Lines
- Page 281: DEROFF (l) DEROFF (l) NAME derofi -
- Page 284 and 285: DIFF ( 1) DIFF ( 1) -e producing a
- Page 287: DIFF3 ( 1 ) DIFF3 (1) NAME diff3 -
- Page 291: DIRCMP ( 1) DIRCMP ( 1) NAME dircmp
- Page 295 and 296: DUMP ( 1 ) DUMP(!) NAME dump - dump
- Page 297: ECHO (l) ECHO (l) NAME echo - echo
- Page 300 and 301: ED ( l ) ED {1) the RE. The REs all
- Page 302 and 303: ED (l) ED (1) . 6. FILES below. A R
- Page 304 and 305: ED ( 1 ) ED ( 1) command list is eq
CSPLIT ( 1) CSPLIT ( l )<br />
Regular expressions may not contain embedded new-lines. Csplit<br />
does not affect the original file; it is the users responsibility to<br />
remove it.<br />
EXAMPLES<br />
csplit -f cobol file '/procedure division/' jpar5./ jpar16./<br />
This example creates four files, cobolOO • • • cobol03. After<br />
editing the "split" files, they can be recombined as follows:<br />
cat cobol0[0-3] > file<br />
Note that this example overwrites the original file.<br />
csplit -k file 100 {99}<br />
This example would split the file at every 100 lines, up to 10,000<br />
lines. The -k option causes the created files to be retained if<br />
there are less than 10,000 lines; however, an error message would<br />
still be printed.<br />
csplit -k prog.c '%main(%' '/'}/+11 {20}<br />
Assuming that prog.c follows the normal C coding convention of<br />
ending routines with a } at the beginning of the line, this example<br />
will create a file containing each separate C routine (up to 21) in<br />
prog.c.<br />
SEE ALSO<br />
ed( 1), sh(l), regexp(5).<br />
DIAGNOSTICS<br />
Self explanatory except for:<br />
arg - out of range<br />
which means that the given argument did not reference a line<br />
between the current position and the end of the file.<br />
- 2-