coreutils
[Top][All Lists]
Advanced

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

Re: input/output redirection with tar


From: Eric Blake
Subject: Re: input/output redirection with tar
Date: Thu, 20 Oct 2011 12:17:33 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15

On 10/20/2011 12:10 PM, e-letter wrote:
Or if you insist on using redirection, then use '-' as the --files-from
argument to tell tar to read from stdin:

tar --extract --file=/path/to/tarball --files-from=-
</path/to/list/of/files.txt

Please, from where did you get the information about the use of the
dash (-) character in this context?

Common convention among many unix tools is to treat '-' as a synonym for stdin. I don't know if 'info tar' explicitly calls this out, though that would be a question for bug-tar.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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