Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: hawran.diskuse 06 Srpna 2011, 17:29:33

Název: tar - seznam souborů k archivaci ve vstupním souboru [vyřešeno]
Přispěvatel: hawran.diskuse 06 Srpna 2011, 17:29:33
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ří:

Kód: [Vybrat]
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.

Kód: [Vybrat]
man tar:
...
     -T, --files-from FILE
           get names to extract or create from FILE
...

Kód: [Vybrat]
$ tar --version
tar (GNU tar) 1.22
Copyright (C) 2009 Free Software Foundation, Inc.

Co je špatně?
Název: Re: tar - seznam souborů k archivaci ve vstupním souboru [vyřešeno]
Přispěvatel: hawran.diskuse 06 Srpna 2011, 17:50:24
Jsme to ale kus vola.
V tom souboru se seznamem souborů nebyl čistý seznam, ale výstup ls -l ...

Tímto to považuji za vyřešené.
 ;D