Il giorno dom, 28/05/2023 alle 08.49 -0400, Max Pyziur ha scritto:
> 
> Greetings,
> 
> When I issue a command such as:
> tar zcvf /var/tmp/SomeArchive.tgz `find . -iname '*pdf' -type f`
This can also introduce some errors cause the command line can be too
long to be interpreted.
If the find command returns lto of files, all become part of the
command line.

Is your goal to create an archive file with all the pdf files?

Maibe a good choise can be

find . -type f -iname "*pdf" -exec tar -Azvf  /var/tmp/SomeArchive.tgz
{} \;

Regards
 Ambrogio

_______________________________________________
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

Reply via email to