help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

command for swapping of two files or two dirs?


From: Peng Yu
Subject: command for swapping of two files or two dirs?
Date: Fri, 26 Mar 2021 12:11:00 -0500

Hi,

I can use mv to program a swap bash script. Or use renameat2(...,
RENAME_EXCHANGE) on Linux and renameatx_np(..., RENAME_SWAP) on Darwin
to make a swap C program.

But since this should be a commonly used function, is there already an
existing well-maintained command for this purpose?

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]