swap safely swap two files or directories
doc generated from the script with gendoc
ruby script, version=1.03


swap [options] file_or_dir1 file_or_dir2

Use if swapping directories in different file systems
Show what would be done
print this help and exit
-H, --help
show full documentation via less and exit
print version and exit


swap swaps the names of two files or two directories. It makes sure that those both exist, are writable, are both either directories or regular files, and are not the same file. If the two are on different devices, swap makes sure that the --copy option was used. Ownerships and permissions of the files must be the same.


Wybo Dekker


Released under the GNU General Public License