Quote:
Right now you have it matching any number of the letter "t"
|
So it should match for one occurence. The problem is that you only allow any number of t characters, and nothing else. So startttttttttfinish and starfinish would match, but not start to finish for example. Try start.*finish rather.
The second line you are using a sed range (/pattern1/,/pattern2/) and the d command which is for delete. Use this when you want to remove a range of lines, starting from the first occurence of pattern1 until the first occurence of pattern2.