Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • ok thank you i use the sed command and got abit closer to my goal using sed -n "/twitter.com/,/blank/p" but i am still getting other text in the file that is not between those two patterns. Commented Nov 22, 2014 at 20:39
  • \? is also a GNU extension. Use \{0,1\} portably. Commented Nov 22, 2014 at 21:25
  • @roshan For such search is better to use grep : grep -o "twitter.com/[^' ]\+" Commented Nov 24, 2014 at 12:19