[plug] mv (move) problem/bug

James Devenish devenish at guild.uwa.edu.au
Fri Jan 14 12:37:32 WST 2005


In message <20050114034118.GU10958 at postoffice.wa.bom.gov.au>
on Fri, Jan 14, 2005 at 11:41:18AM +0800, Russell Steicke wrote:
> On Fri, Jan 14, 2005 at 10:14:15AM +0800, Timothy White wrote:
> > I use 'mv --reply=no' and 'mv -i --reply=no' and it still overwrites the
> > existing file.
> You could simplify this with
>   [ -f dstfile ] || mv srcfile dstfile

If multiple files are being moved with a single invocation, BSD gives us

yes no | mv -i blah* /blah/blah





More information about the plug mailing list