1HCOPY(1)                    General Commands Manual                   HCOPY(1)
2
3
4

NAME

6       hcopy - copy files from or to an HFS volume
7

SYNOPSIS

9       hcopy [-m|-b|-t|-r|-a] source-path [...]  target-path
10

DESCRIPTION

12       hcopy  transfers  files  from  an HFS volume to UNIX or vice versa. The
13       named source files are copied to the named  destination  target,  which
14       must be a directory if multiple files are to be copied.
15
16       Copies are performed using a translation mode, which must be one of:
17
18       -m     MacBinary  II:  A  popular format for binary file transfer. Both
19              forks of the Macintosh file are preserved. This  is  the  recom‐
20              mended mode for transferring arbitrary Macintosh files.
21
22       -b     BinHex:  An  alternative  format  for  ASCII file transfer. Both
23              forks of the Macintosh file are preserved.
24
25       -t     Text: Performs end-of-line translation. Only the  data  fork  of
26              the Macintosh file is copied.
27
28       -r     Raw  Data:  Performs  no  translation. Only the data fork of the
29              Macintosh file is copied.
30
31       -a     Automatic: A mode will be chosen  automatically  for  each  file
32              based on a set of predefined heuristics.
33
34       If no mode is specified, -a is assumed.
35
36       If a UNIX source pathname is specified as a single dash (-), hcopy will
37       copy from standard input to the HFS  destination.  Likewise,  a  single
38       dash  used  as a UNIX destination pathname will cause hcopy to copy the
39       HFS source to standard output.
40

NOTES

42       Copied files may have their filenames altered during  translation.  For
43       example,  an  appropriate  file  extension may be added or removed, and
44       certain other characters may also be transliterated.
45
46       The destination target must not be ambiguous; that is, it must be obvi‐
47       ous  whether  the target is on the UNIX filesystem or on an HFS volume.
48       As a rule, HFS targets must contain at least one colon (:), usually  as
49       the beginning of a relative pathname or by itself to represent the cur‐
50       rent working directory. To make a UNIX target unambiguous,  either  use
51       an  absolute  pathname  or  precede  a relative pathname with a dot and
52       slash (./).
53

SEE ALSO

55       hfsutils(1), hls(1), hattrib(1)
56

AUTHOR

58       Robert Leslie <rob@mars.org>
59
60
61
62HFSUTILS                          13-Jan-1997                         HCOPY(1)
Impressum