Hello,
I have been using
in order to rename thousands of scientific articles that were downloaded with annoyingly cryptic filenames. Some colleagues found out that I have been doing this and now I am the "PDF-renamer-person" in the office.
However, the process does take a bit of time as it is single threaded. Thus I am wondering how it might be possible to parallelize the above on multi-core systems such that each core is scanning a set of PDFs and renaming them concurrently.
I have tried piping the following script through GNU parallel:
, which doesn't really work as expected. It still defaults somehow to a single core.
So I am inquiring here as to whether more brilliant minds might be able to shed some light on what I can improve in order to make this work more efficiently.
To be clear I am using p5-exiftool from the package collection.
I have been using
Code:
exiftool '-filename<$title.%e' .
However, the process does take a bit of time as it is single threaded. Thus I am wondering how it might be possible to parallelize the above on multi-core systems such that each core is scanning a set of PDFs and renaming them concurrently.
I have tried piping the following script through GNU parallel:
Code:
#!/bin/sh
exiftool '-filename<$title.%e' .
done
Code:
cat ./command.sh | parallel -j 4 '{}'
So I am inquiring here as to whether more brilliant minds might be able to shed some light on what I can improve in order to make this work more efficiently.
To be clear I am using p5-exiftool from the package collection.