
January 17th, 2013, 10:55 AM
|
|
Registered User
|
|
Join Date: Jan 2013
Posts: 1
Time spent in forums: 9 m 5 sec
Reputation Power: 0
|
|
|
Other - Get Word after First Occurrence of Word
I have a file containing strings of SQL, e.g.,
12345 SELECT FIELD1 FROM TABLE1
12346 THIS IS A STATEMENT THAT DOESN'T NEED TO BE SEEN
12347 SELECT FIELD2 FROM TABLE2 WHERE
I would like to output something like:
TABLE1
TABLE2
the first word after FROM. Words are delimited by spaces in this file.
Thank you.
|