Dne 4.5.2011 11:42, Modulok napsal(a):
By the way, in reference to the commands above the -j option is for
bzip2, so the extension should be .tbz o_O
Thanks everyone! I went with the following, because it works regardless of
space characters in filenames. (Thanks for the correction on the extenion. It
should indeed be 'tbz' when using the 'j' flag.)
find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz
When the amount of files is huge then tar will be invoked twice
or more. Thus result.tbz will contain just files from the last invocation.
I consider cpio a better option here.
BR
Oli
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"