pmvmac -- MvMac(1), or mv(1), implemented as perl script
pmvmac [-f|-i] source_file target_file pmvmac [-f|-i] source_file ... target_directory
As of Mac OS X v10.4 (Tiger), the ordinary mv(1) does support resource fork.
pmvmac, as its name implies, moves files with finder info and resource fork.
In the first synopsis form, pmvmac renames the source_file to the target_file. In the second synopsis form, each named source_file is moved to the destination target_directory. The names of the files themselves are not changed. If mv detects an attempt to move a file to itself, the copy will fail.
The following options are available:
Foreach existing destination pathname, attempt to overwrite it. If permissions do not allow move to succeed, remove it without prompting for confirmation.
Causes pmvmac to write a prompt to the standard error output before copying a file that would overwrite an existing file. If the response from the standard input begins with the character "y" or "Y", the file move is attempted.
For safety, this option cancels -f option. This is the opposite of BSD mv implementation.
Verbose mode. Prints each items copied to standard output.
When mvmac tries to move items accross volumes, pmvmac uses pcpmac and File::Path::rmtree() to accomplish the move. The effect is equivalent to:
rm -f destination_path && \ pcpmac -r source_file destination && \ rm -rf source_file
Dan Kogai <dankogai@dan.co.jp>
mv(1) "Developer/Tools/MvMac"
Copyright 2002-2005 Dan Kogai <dankogai@dan.co.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
To install MacOSX::File, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MacOSX::File
CPAN shell
perl -MCPAN -e shell install MacOSX::File
For more information on module installation, please visit the detailed CPAN module installation guide.