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

Re: find -mtime -1 | xargs scp ... user@remote:/dest/path



On Sun, Sep 29, 2002 at 10:19:03AM -0500, will trillich wrote:
> 	xargs -i# command # suffix

Since # is almost always a shell metacharacter, it's not surprising that
this doesn't work. Try using an alpha sequence, what I usually use is
"xargs -iXXX foo XXX bar".

By the way, if you're absolutely certain that there are no "special"
characters or spaces in any of the filenames, you can also use
  scp -options `find . -options` user@host:dir

-- 
Michael Heironimus



Reply to: