Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Versiontracker' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Versiontracker
Authored by: rorya on Dec 31, '02 02:26:35PM

Regarding CLI tools to deal with dual-fork files, there are a
few on the system that are worth mentioning.

If you've installed the developer tools you should have a /Developer/Tools
directory. In there you will find two utilities named CpMac and MvMac. These
allow you to copy or move dual-fork files. You can use them the same way you would use cp(1) and mv(1).

Besides that, the system comes with a utility named ditto(8), which is similar
to the cp(1) command. Read the manual page for its usage. Always remember to add
the -rsrc flag to make it duplicate the resource fork(s).



[ Reply to This | # ]
Versiontracker
Authored by: rorya on Jan 01, '03 07:15:24PM

oops, I have a typo for the ditto flag to preserve the resource fork.
The flag is actually "-rsrcFork"

-rory



[ Reply to This | # ]
ditto
Authored by: sjk on Apr 12, '03 03:28:52PM

"ditto -rsrc" is equivalent to "ditto -rsrcFork".



[ Reply to This | # ]