|
Parsing Text File and returning variables Hey, I need help with a problem I have working on a text file.
Basically what I want to do is find a way to search for a line
expression, and then pull out the next numeric value into a variable
to be stored in the script (I will then take all these variables and
upload them to a sql db).
in other words, for the example below, I would like to search for
"product code" and then assign 7618 to a $ProdCode, find time and set
$TimeStamp = "02.05.47", etc.
I'm sure there's an easy way, I just can't figure it out!
#################################
Product Code 7618 Time=
02.05.47
Order No. 190805 Date=
10.25.2006
D a t a P r i n t o u t
Line Speed ........... 13.6 M/min
Roll Speed ................. 13.4 M/min |