Subject: Re: upgrade to mv
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 08/15/2001 10:42:05
[ On Wednesday, August 15, 2001 at 08:56:43 (-0400), Andrew Brown wrote: ]
> Subject: Re: upgrade to mv
>
> putting it that way reminds me that i've always wanted an option to mv
> where i could specify the destination as the argument to an option,
> rather than as the last argument in the list.  it would mean i could
> do things like:
> 
> 	find . -name \*.html -print0 | xargs -0 mv -d otherplace
> 
> and not use
> 
> 	mv `find . -name \*.html` otherplace
> 
> which loses if (1) there are too many files, (2) they have weird
> characters in the names, or (3) the shell's quoting semantics are just
> a little off form what i expected.

Yes, that's not a bad idea at all.

I've actually hacked such a thing together once or twice before myself
but never tried to promote it as a new feature for generic use.

> cp (and maybe ln as well) would, of course, need to grow in the same
> way to be complete.

Back in the days when they were all the same programm....  :-)

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>     <woods@robohack.ca>
Planix, Inc. <woods@planix.com>;   Secrets of the Weird <woods@weird.com>