[Top][All Lists]

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

[sr #105815] --lastarg foo

From: Dave Yost
Subject: [sr #105815] --lastarg foo
Date: Wed, 28 Mar 2007 23:42:51 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/419 (KHTML, like Gecko) Safari/419.3


                 Summary: --lastarg foo
                 Project: findutils
            Submitted by: yost
            Submitted on: Wednesday 03/28/2007 at 16:42
                Category: None
                Priority: 5 - Normal
                Severity: 1 - Wish
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None



If there is a way to use xargs with commands like cp, mv, ln, rsync, etc., I
don't know what that it is.  Problem is that these commands (and others, of
course) don't fall into the class of programs xargs works well with, i.e.
commands of the form
 cmd [ options ] arg ...
They are of the form
 cmd [ options] arg ... destination

Often I want to use xargs -0 with these commands to properly handle filenames
with spaces in them.

This feature request should be crystal clear from the following example:

Z% echo 'a
d' | xargs -n 2 --lastarg destinationDir mv
mv a b destinationDir
mv c d destinationDir


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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