|
From: | Pádraig Brady |
Subject: | Re: New feature in mv |
Date: | Wed, 05 Dec 2012 00:22:01 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
On 12/04/2012 05:04 PM, Paweł Lampe wrote:
Hi there ! Few minutes ago, my mate asked me 'is there any way to swap two files ?'. I have realized, that the mv has option -S but it's all about suffix. I think, there should be also -s for swapping. It should work like: mv -s a b Effect should be like: a -> tmp b -> a tmp -> b Think about it
A fairly useful feature, but something as noted here that might be more suited to a separate script, that could be maintained within coreutils under the recently mentioned contrib/ directory http://lists.gnu.org/archive/html/bug-coreutils/2009-02/msg00014.html thanks, Pádraig.
[Prev in Thread] | Current Thread | [Next in Thread] |