Mailing List Archive


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

[tlug] Re: Google; Twilight Tar



Stuart Luppescu wrote:

> Wow. This works. Weird. Why shouldn't the other form work, though?

From the man page:

|xargs reads arguments from the standard input, delimited by blanks
|(which can be protected with double or single quotes or a backslash) or
|newlines, and executes the command (default is /bin/echo) one or more
|times [...]

Note the "one or more times". AFAIK xargs is used to get around command
line length limitations, so if the number of arguments would exceed the
maximum line length the command is called multiple times. In case of tar
this means that the .tar.gz gets overwritten a few times...
Try using
"find . -name \*.sas |xargs tar Azfv ltest.tar.gz > ltest.log"
                                ^ replaced c(reate) with A(ppend)
instead. I'd bet this will work.

-- 
Tobias								PGP: 0x9AC7E0BC
This mail is made of 100% recycled bits
Now playing: Masami Okui: Do-can 10 - bitamin - zettai,souda. -

Attachment: pgp00055.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links