fmuquartet
Programmer
Greetings!
I have a new requirement for a small shell scrip that I want to convert over to perl as follows:
1)unzip files in the format 'file-`date +%Y%m%d`.zip' into Spool DIR
2)parse each file with a perl script and append prefix ADD on them
e.g ADD_file-`date +%Y%m%d`.zip
3) package them up in an zip archive into /var/tmp/file-`date +%Y%m%d`.zip
Presentlty, I am simply unzipping the files and passing them to perl script as follows:
unzip -p file-`date +%Y%m%d`.zip |perlscript.pl > file-`date +%Y%m%d`.txt
Note: I need to have each file in the archive parsed against the perl script and ADD prefixed now.
If someone can help me out here, is is kindly apprciated!
I have a new requirement for a small shell scrip that I want to convert over to perl as follows:
1)unzip files in the format 'file-`date +%Y%m%d`.zip' into Spool DIR
2)parse each file with a perl script and append prefix ADD on them
e.g ADD_file-`date +%Y%m%d`.zip
3) package them up in an zip archive into /var/tmp/file-`date +%Y%m%d`.zip
Presentlty, I am simply unzipping the files and passing them to perl script as follows:
unzip -p file-`date +%Y%m%d`.zip |perlscript.pl > file-`date +%Y%m%d`.txt
Note: I need to have each file in the archive parsed against the perl script and ADD prefixed now.
If someone can help me out here, is is kindly apprciated!