Created
December 22, 2020 14:45
-
-
Save marios88/050ad50528edcb7e0a9d98d527f252a9 to your computer and use it in GitHub Desktop.
Find PDFs in current folder and subfolders, run ps2pdf with parallel execution and replace on the fly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nohup find . -name '*.pdf' | xargs -n 1 -P 8 -I % sh -c 'ps2pdf "%" - | sponge "%";echo "%"' & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment