P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi, I am new to Perl and am in need of help with the following problem:
I have a config file that looks like this: # Feed Name # action=ecrypt OR decrypt # input_file # input file to be encrypted or decrypted # output_file # output file to be encrypted or decrypted SLS action=decrypt input_file=/home/qsi/tmp/SLSInterestExtract.*.*.*.pgp output_file=/home/qsi/tmp/SLSInterestExtract.*.*.csv I already have the code to read the cfg file but I am not sure how to parse the file names, read the directories and generate the output file name. For example: /home/qsi/tmp/SLSInterestExtract.*.*.*.pgp is actually SLSInterestExtract.080308.0459.txt.pgp in the directory. I need to generate: SLSInterestExtract.080308.0459.csv Thanks for your help!!! In reply to Regex Question by LouM
|
|