-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 03 August 2002 03:00 am, Kalin Mintchev wrote:
> what would be the opposite of the -X option in tar? > like if i want to include ONLY files with certain extensions in the > archive and not all of the directory... If you want to include all files like *.sh (for example), you can use something like: $ tar -cvf archive.tar *.sh (tar -options filename_to_create files_to_add) The read the list of files to include from a file: Create file containing a list of files to include. $ cat temp.txt update_list.sh update_rule.sh uploadrule-enigma.sh uploadrule-fsf.sh Then, create the archive: $ tar -cvf archive.tar -T temp.txt Check the contents: $ tar -tf archive.tar update_list.sh update_rule.sh uploadrule-enigma.sh uploadrule-fsf.sh - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.2 in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj1Lgu8ACgkQn/07WoAb/SsUTQCgppcGFalUtnVKL2VymCCONfKy 2hIAoKTD8+NjCYEOA3g/7xkLkg2oyQHD =3U4x -----END PGP SIGNATURE----- -- redhat-list mailing list Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list