I need to read through a text file and examine each line. If the leading and/or trailing character is a double-quote I need to truncate those characters. However, there are double-quotes within the line which are valid and can't be changed.
I'm not looking for a solution, only some pointers - I learn better that way.
I have the script so that the current line of the file is in line$ but I'm not sure how to find the (leading or trailing only) double-quotes. My plan, once I figure that out, is to calculate the length of the string and then use the substr command to pick all but those leading/trailing characters.
Thoughts? Hints?
Tnx in advance.
Tom
"My mind is like a steel whatchamacallit ...
I'm not looking for a solution, only some pointers - I learn better that way.
I have the script so that the current line of the file is in line$ but I'm not sure how to find the (leading or trailing only) double-quotes. My plan, once I figure that out, is to calculate the length of the string and then use the substr command to pick all but those leading/trailing characters.
Thoughts? Hints?
Tnx in advance.
Tom
"My mind is like a steel whatchamacallit ...