Article 57NK6 gpg cron wildcard

gpg cron wildcard

by
vinmansbrew
from LinuxQuestions.org on (#57NK6)
rhel 6.10

I have a working script to do a cron job to decrypt a file using gpg. Problem is the file name will change daily. So, an absolute path wouldn't work.
I am wondering if there are wildcards that can be used with gpg. I know there are wildcards that work for other things, but I haven't found the combo that will work for gpg. The basic file name will stay the same, it is the date in the file name that will be changing.

Say this is the file name: 17493_Pending_PROD_20200625040006975.CSV.pgp
The 20200625040006975 will change each day.
I've tried 17493_Pending_PROD_*.CSV.gpg
??.CSV.gpg
17493_Pending_PROD_[].CSV.gpg

Maybe I need an * for each character I need to wildcard?

Another option I thought of might be to have a script that accepts the wildcard, to change the name to a generic name, which would allow me to use an absolute path? But, I am not sure how the program that is going to use the decrypted file, would like that. I'll have to check with the person that uses the program.

Anyways, any thoughts on wildcards for the gpg process, or does it require an absolute path?

Thankslatest?d=yIl2AUoC8zA latest?i=EXlxbIgx7hY:rd2u4EiNlHo:F7zBnMy latest?i=EXlxbIgx7hY:rd2u4EiNlHo:V_sGLiP latest?d=qj6IDK7rITs latest?i=EXlxbIgx7hY:rd2u4EiNlHo:gIN9vFwEXlxbIgx7hY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments