Help with a script (question on strings)
I'm looking for someone to help me figure out how to accomplish a task with a shell script. I have the string variable TEXT containing the following:
TEXT=<TR><TD><INPUT TYPE=text NAME=Hour , SIZE="2" MAXLENGTH="2" VALUE="12"></TD>
(the line is an extract from a web page). Notice the part of the string that says VALUE="12"? I want to set another variable to the number in quotes. In other words, I'd like to figure out a way to extract the number after VALUE and set this number to a variable called HOUR. In this case, HOUR would equal 12.
Any ideas?
BS
|