bug-findutils
[Top][All Lists]
Advanced

[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

URL:
  <http://savannah.gnu.org/support/?105815>

                 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

    _______________________________________________________

Details:

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
b
c
d' | xargs -n 2 --lastarg destinationDir mv
mv a b destinationDir
mv c d destinationDir
Z% 





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?105815>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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