Skip to content

Instantly share code, notes, and snippets.

@marios88
Created December 22, 2020 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marios88/050ad50528edcb7e0a9d98d527f252a9 to your computer and use it in GitHub Desktop.
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
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