On Mon, Apr 02, 2001 at 10:42:38AM +0300, Claudiu Balciza <[EMAIL PROTECTED]> wrote:
| how do I convince tar to include files starting with dots ?
Tar has no objections to dot files at all. More likely _you_ are not
asking for dot files. Normal practice is to say
tar cf the-tarfile some-directory
Probbably you are saying
tar cf the-tarfile *
* does not match filenames beginning with ".". This is how the shell works
and is nothing to do with tar. Say:
tar cf the-tarfile .* *
Of course, that will include . and .. and thus suck up way more than you
want. Better perhaps to say:
tar cf the-tarfile .[a-zA-Z]* *
which will avoid . and .. and possible other things you did want.
This is one reason why it is better to put everything your want in a
single directory (with subdirs, natch) and then say
tar cf the-tarfile the-directory
That's also much nicer for the person unpackings the tar file later.
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
The code was willing,
It considered your request,
But the chips were weak.
- Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list