help-gnu-utils
[Top][All Lists]
Advanced

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

Re: question about the "copy, then remove" behaviour of mv


From: Henrik Carlqvist
Subject: Re: question about the "copy, then remove" behaviour of mv
Date: Fri, 23 Oct 2009 23:02:25 +0200
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

Musaul Karim <musaul@googlemail.com> wrote:
> Is there a way around it to make mv do the "copy, remove" operation
> iteratively per file, rather than as a single operation for all the
> files?

Instead of something like

mv file*ext /new/path

You could do

find . -maxdepth 1 -name "file*ext" -exec mv {} /new/path \;

regards Henrik
-- 
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost



reply via email to

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