Re: A silly question about tar
On 2007-03-17, Tyler Smith <tyler.smith@mail.mcgill.ca> wrote:
> On 2007-03-17, Douglas Allan Tutty <dtutty@porchlight.ca> wrote:
>>
>> Within that directory I issued:
>>
>> $ls -1 | xargs -L 1 tar -xf
>>
>> and ended up with a test subdirectory containing all nine files.
>>
>
....
> The argument to ls, "ls -1" is not necessary.
....
Did some reading on this, and it turns out that when standard output
of ls is anything but a terminal it automatically defaults to
'ls -1'. So as soon as you put a pipe at the end of ls the -1 is
assumed.
--
Regards,
Tyler Smit
Reply to: