I am new to bash scripting and I have a small code that takes PDF as input, do some manipulation and returns the PDF. But it does one file at a time, so we have to run it for each file.
The code can be run as below where "hello" is the code.: -
hello path_to_original_pdf path_to_updated_pdf
I need to write a Bash script that read files from a folder one by one, performs the operation "hello" on each file and then saves the updated PDF into the output folder.
I tried something like :-
target = "path_to_updated_pdf"
for filename in "path_to_original_pdf"/*
do
hello $filename $target
done;
Can someone suggest if this is the correct way to do it?