R
rnhurt
Hello,
I have a project where I need to assign two scalars ($FileType &
$FileName) depending on the name of a particular file. I am reading in
a list of files (ls -l > file.in) and need to update a database every
time I see a particular filename pattern. The problem is, there are 25
different filename patterns, something like this:
Filename Pattern $FileType $FileName
=========================== ============ =============
xxxxxxC.*.dvr.ddhhmm SLS dvr
xxxxxxC.*.dio.ddhhmm SLS dio
xxxxC.emplchg.xfg.dddmmhh HR emplchg
xxxxxxC.rmd*.din.ddhhmm INV din
I have a project where I need to assign two scalars ($FileType &
$FileName) depending on the name of a particular file. I am reading in
a list of files (ls -l > file.in) and need to update a database every
time I see a particular filename pattern. The problem is, there are 25
different filename patterns, something like this:
Filename Pattern $FileType $FileName
=========================== ============ =============
xxxxxxC.*.dvr.ddhhmm SLS dvr
xxxxxxC.*.dio.ddhhmm SLS dio
xxxxC.emplchg.xfg.dddmmhh HR emplchg
xxxxxxC.rmd*.din.ddhhmm INV din