Zdravím,
snažím se tar-u podhodit seznam souborů k archivaci jako seznam v jednom vstupním souboru, ale pořád se mi nedaří:
cz994691:/.../tmp $ tar czvf TEST.tar.gz -T cpp.files.lst
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -czvf TEST.tar.gz -T cpp.files.lst
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c -z -v -f TEST.tar.gz -T cpp.files.lst
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c -z -v -T cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c -z -v -f TEST.tar.gz --files-from=cpp.files.lst
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c -z -v --files-from=cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar czv --files-from=cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar c --files-from=cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c --files-from=cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
man tar:
...
-T, --files-from FILE
get names to extract or create from FILE
...
$ tar --version
tar (GNU tar) 1.22
Copyright (C) 2009 Free Software Foundation, Inc.
Co je špatně?