[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-tar] tar list of dirs from STDIN - *just the dirs* (to save pe
From: |
Sergey Poznyakoff |
Subject: |
Re: [Help-tar] tar list of dirs from STDIN - *just the dirs* (to save perms) |
Date: |
Wed, 29 Nov 2017 11:26:51 +0200 |
Hi,
> $ echo ~/.config/ | tar -cvf /dev/null -T - --no-recursion 2>&1 |head -4
The '--no-recursion' option modifies the behavior of options and
arguments that follow it. The way you use it it has no effect. The
correct way:
$ echo ~/.config/ | tar -cvf /dev/null --no-recursion -T - 2>&1 |head -4
For details, please see the GNU tar manual, subsection 3.4.4
"Position-Sensitive Options".
Regards,
Sergey