Wrapper over the Linux syscall renameat2
with the RENAME_EXCHANGE
flag set. For more
information, read man renameat2
.
This program only works on Linux. To compile:
make
To install to /usr/local/bin
:
make install
exchange: atomically exchange names and contents of two files or directories
Usage: exchange [OPTIONS] PATH1 PATH2
Options:
-h, --help show help text and exit
-v, --verbose produces verbose output