Stephen Gran on 10 May 2005 03:18:53 -0000


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

Re: [PLUG] Tutorials


On Mon, May 09, 2005 at 11:08:39PM -0400, Mark M. Hoffman said:
> Hi Jon:
> 
> * Jon Nelson <quincy@linuxnotes.net> [2005-05-06 15:14:57 -0400]:
> > Sure it can and so can any other command with 'xargs':
> > 
> >     $ find ../dir1/ | cpio -o --format=tar > test.tar
> > 
> > would be:
> > 
> >     $ find ../dir1/ | xargs tar cvf test.tar
> 
> Ugh, no.  The xargs man page says:

Just use expansion:
tar $options test.tar $(find ../dir1/)

Right?
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | Work is the crab grass in the lawn of   |
|  steve@lobefin.net             | life.   -- Schulz                       |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------

Attachment: pgpZuSK7gTKkY.pgp
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug