This kind of question has been asked and answered quite a lot, but I just cant wrap my head around it, so please bear with me.
I have this chunk of text (html source code) I want to sift through and extract the text that sits at a certain position. The position is delimited by a forward slash ( / ) at the beginning and a double quote mark ( " ) at the end. I know that the relevant forward slash ist the 13th occurrence of that character in the text:
foo/foo/...13th slash follows/THIS IS THE STRING I WANT" bar
Doesn't have to be sed, of course. I suppose grep or some other tool would also do the job.
Thanks for reading and I appreciate any pointers.
Tx
Bookmarks