need help with bash script
I need to write and use a bash script, probably simple for some users. I have never done it before but greatly need it. I have to process 100 files or so through the same command, each time giving it a different file to use as input and having it create a different file name for the output. So it would read a file form a directory, decrypt it using pgp, send the output with part of the same file name to a child directory, then go back and read the next one ,etc.
The command that will be processing is (gpg --batch --trust-mode always --passphrase-file /XXXXX-xxxx/xxxxxx/TEDKEYPASSFILE -r XXXXHPPGP -r GatewayServices --output /home/xxxxxx/xxxxxx/member_prod_XXXX_ABC_AF_12345678.xml --decrypt /XXXX-xxxprod/xxxxx/xxxxxx/xxxxxx/xxxxx/xxxxx_prod_xxxxxx_xxxxx_AF_12345678.xml.pgp.12345678
I could copy them out of their normal directory so that the iteration codl be based on the # of files in the directory it is reading from.