Re: question about the "copy, then remove" behaviour of mv
Henrik Carlqvist <[email protected]> Fri, 23 Oct 2009 23:02:25 +0200
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Organization | SunSITE.dk - Supporting Open source |
| Message-ID | <[email protected]> |
Musaul Karim <[email protected]> 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