Categories
Linux Mastering Development

sed: extract text within pattern that occurs an arbiratry number of times in a line

I need to extract a part of string that may appear 1 to n times in each line. For instance, this would reflect what I need: This [dbo].[something] is a text containing [dbo].[something_else], then okay? And then, [dbo].[something] may appear just once. But why, nothing prevents [dbo].[something] from appearing twice as [dbo].[something] here. And then […]

Categories
Linux Mastering Development

sed: extract text within pattern that occurs an arbiratry number of times in a line

I need to extract a part of string that may appear 1 to n times in each line. For instance, this would reflect what I need: This [dbo].[something] is a text containing [dbo].[something_else], then okay? And then, [dbo].[something] may appear just once. But why, nothing prevents [dbo].[something] from appearing twice as [dbo].[something] here. And then […]

Categories
Linux Mastering Development

sed: extract text within pattern that occurs an arbiratry number of times in a line

I need to extract a part of string that may appear 1 to n times in each line. For instance, this would reflect what I need: This [dbo].[something] is a text containing [dbo].[something_else], then okay? And then, [dbo].[something] may appear just once. But why, nothing prevents [dbo].[something] from appearing twice as [dbo].[something] here. And then […]