|
|
DataMuseum.dkPresents historical artifacts from the history of: ICL Comet 32 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about ICL Comet 32 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3559 (0xde7)
Types: TextFile
Notes: UNIX file
Names: »bcp.n«
└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
└─⟦28c352965⟧ »/a« UNIX Filesystem
└─⟦this⟧ »usr/man/catn/bcp.n«
1
BCP(N) UNIX Programmer's Manual BCP(N)
NAME
bcp - buffered copy
SYNOPSIS
bcp [ -sn ] [ -in ] [ -on ] [ -bn ] [ file1 [ file2 ] ]
DESCRIPTION
_▶08◀B_▶08◀c_▶08◀p copies _▶08◀f_▶08◀i_▶08◀l_▶08◀e_▶08◀1 to _▶08◀f_▶08◀i_▶08◀l_▶08◀e_▶08◀2. It is mainly used for copying
files to and from the raw floppy device /_▶08◀d_▶08◀e_▶08◀v/_▶08◀r_▶08◀f_▶08◀l_▶08◀o_▶08◀p. It can
also be used for ordinary files and for the raw tape dev-
ice /_▶08◀d_▶08◀e_▶08◀v/_▶08◀r_▶08◀m_▶08◀t. The ordinary copy program _▶08◀c_▶08◀p(1) cannot be
used since IO must be in multiples of page size (512
bytes) and there's no way to specify size when copying
from a diskette.
The options are as follows:
-sn The number _▶08◀n gives the maximum number of pages to
copy.
-in Specifies seek offset on input file in multiples
of page size.
-on Specifies seek offset on output file in multiples
of page size.
-bn Gives number of pages to use for internal buffer-
ing. The default is 12 (suitable for keeping a
floppy drive busy).
If a writable ordinary output file exists, it is not trun-
cated but is merely overwritten at the given offset. If
the output file does not exist, it is created with mode
644. If an argument file is not given, or is the string
"-", standard input or output is assumed. A seek is not
possible in this case. The number of bytes written is
rounded up to a multiple of page size and the remaining
bytes are zeroed. This normally happens when the input
file is an ordinary file or a pipe.
EXAMPLES
bcp -s1600 /dev/rflop flopdump
bcp -s100 -i1500 /dev/rflop floptail
cat foo bar baz | bcp -o1000 - /dev/rflop
bcp -s34000 -b128 /dev/rdc1g /dev/rmt
The last example shows how to dump an entire disk parti-
tion on tape. The buffer size 128 is the maximum size of
raw IO used internally by the kernel and is therefore
fastest for a streamer tape that has to backspace between
every write.
A more sophisticated program _▶08◀d_▶08◀b_▶08◀c_▶08◀o_▶08◀p_▶08◀y(N) that uses 2 syn-
chronized processes is also available. It is about 20%
faster (real, not cpu time) than _▶08◀b_▶08◀c_▶08◀p for writing an entire
diskette. With present hardware there's no advantage in
using it for tape. A more general utility for copying and
converting raw files is _▶08◀d_▶08◀d(1).
1
BCP(N) UNIX Programmer's Manual BCP(N)
SEE ALSO
cp(1), dbcopy(N), dd(1), far(1), tar(1), dump(8)
2