eclecticNancy
Programmer
I'm receiving files from one location, decrypting and saving to a new location (via a script).
I have been using pgp -o to define the destination path + filename... but until now, I just had to strip the .pgp to arrive at the original filename. Now I'm getting files that do not follow this pattern, and need to restore the original filename.
Is there a way to use pgp -p <ciphertext_filename>
... while defining a new path for the plaintext file?
for example, I want to decrypt C:\filex.pgp - whose original plaintext name was x.txt - and place it at D:\x.txt
I have been using pgp -o to define the destination path + filename... but until now, I just had to strip the .pgp to arrive at the original filename. Now I'm getting files that do not follow this pattern, and need to restore the original filename.
Is there a way to use pgp -p <ciphertext_filename>
... while defining a new path for the plaintext file?
for example, I want to decrypt C:\filex.pgp - whose original plaintext name was x.txt - and place it at D:\x.txt