pdfgrep - Execute command result as Private data
Posted: Fri Aug 09, 2024 3:14 pm
Howdy, I've had no luck after ~6 hours of playing with this and would greatly appreciate guidance.
How can I capture the text result of grep into Private data?
Working terminal code which gives a text file with the grep match:
I need to assign the stdout to private data, although I couldn't even get a "sidecar" asset to generate with this:
I have 'Command or path' set to /opt/homebrew/bin/pdfgrep
'Output' Updated input job (also tried to see a text file alongside with 'result next to input')
'Exit code' Discard
'Stdout' Attach as dataset
'Stderr' Discard
Disregard exit codes
My bash knowledge is poor and the syntax required for 'Execute command' is occult to me as well! Thanks so much for reading.
How can I capture the text result of grep into Private data?
Working terminal code which gives a text file with the grep match:
Code: Select all
pdfgrep -P 'T\d+' TEST.pdf | tee output.txt
Code: Select all
pdfgrep -P 'T\d+' '%1' > '%2\[Job.NameProper].txt'
'Output' Updated input job (also tried to see a text file alongside with 'result next to input')
'Exit code' Discard
'Stdout' Attach as dataset
'Stderr' Discard
Disregard exit codes
My bash knowledge is poor and the syntax required for 'Execute command' is occult to me as well! Thanks so much for reading.