DFORK(1) MachTen Programmer’s Manual DFORK(1)

NAME
dfork (rfork) - isolate data (resource) fork

SYNOPSIS
dfork [ infile [ outfile ]]
dfork -d file
dfork -i file
rfork [ infile [ outfile ]]
rfork -i file

DESCRIPTION
Macintosh files have a data fork and/or a resource fork.

dfork outputs just the data fork of infile (or standard
input) to outfile (or standard output).

rfork provides the same service for the resource fork.

infile (outfile) may be entered as dash, ‘‘-’’, to specify
standard input (standard output).

If the option -i is given, dfork (rfork) will replace each
specified file with its data (resource) fork. If a direc-
tory is named, each file in that directory will be pro-
cessed, however, no recursion is performed for subdirecto-
ries.

If the option -d is given, dfork converts an AppleSingle
file to AppleDouble format by creating a file named ’rsrc’
which will contain an AppleDouble header followed by the
original file’s Resource Fork. The data fork of the orig-
inal file will be sent to standard output.

MachTen July 23, 1997 1