K
kent.westmoreland
Hello,
I am attempting to take a string similar to the following as input:
response_93_johndoe_1171994965031.xml
and break it up into the following output:
93johndoe.txt
The format of the input will always be of the type
"response_<somenumber>_<somename>_<longstringofnumbers>.xml"
I would like this to be dynamic, such that I can run a perl script
from the command line, and it will take the above file name as input,
and give me the second name as output.
Any Ideas?
My Ultimate goal is to be able to create a log file based on the name
of the input file and store it as a variable to be used later.
Thanks,
Kent
I am attempting to take a string similar to the following as input:
response_93_johndoe_1171994965031.xml
and break it up into the following output:
93johndoe.txt
The format of the input will always be of the type
"response_<somenumber>_<somename>_<longstringofnumbers>.xml"
I would like this to be dynamic, such that I can run a perl script
from the command line, and it will take the above file name as input,
and give me the second name as output.
Any Ideas?
My Ultimate goal is to be able to create a log file based on the name
of the input file and store it as a variable to be used later.
Thanks,
Kent