On 01Feb2023 13:07, Jerry James <loganje...@gmail.com> wrote:
If you can make your list with find, you can also do something like
this:
find [top directory] [find criteria here] -exec tar -cvzf arch.tgz {} +
This recreates the tar file once per file, ending up with a tar file
containing only the last file found.
Or, if you can generate the list with null characters instead of
spaces as the filename separators, you could do something like this:
[generate the list with nulls] | xargs -0 tar -cvzf arch.tgz
Unless there are enough files for xargs to break the files into multiple
groups, in which case... again a tar file containing only the last
group.
Cheers,
Cameron Simpson <c...@cskk.id.au>
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue