I have a long, long log file of SQL commands, and I'm interesting in grep'ing just the name of the tables. For example:
SELECT * FROM table_02323 SELECT * FROM table_231 SELECT * FROM table_1
I want to grep so that the result returns
table_02323 table_231 table_1
The closest thing I've gotten is
grep -o 'table.....' this.log but obviously the suffix will have different lengths. Is there a regex expression to output without being constrained by a fix length as is the case w/ using periods?