Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: --files-from #99

Open
tim-rex opened this issue Feb 7, 2022 · 1 comment
Open

Feature request: --files-from #99

tim-rex opened this issue Feb 7, 2022 · 1 comment

Comments

@tim-rex
Copy link

tim-rex commented Feb 7, 2022

It seems the only way to specify multiple files to be compressed is by specifying them directly on the command line, which is subject to command length limits imposed by the operating system (in many cases, 4096 characters)

Edit: The command length limit is actually much higher, as defined by ARG_MAX

It could be helpful if a --files-from option were available, similar to rsync.

At present the only workaround for a particularly long list of files involves multiple invocations of pigz, perhaps via xargs.

@darked89
Copy link

@tim-rex

Instead of ```pigz some_glob_pattern" you may try using a loop:

for fn in some_glob_pattern
do
    pigz $fn
done

Hope it helps,

DK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants