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*

2
  • Note that the OP doesn't specify that 16-02-2020 will always be the only text in the line, with no whitespace before or after. You might want to just use perl -ne '$f=1 if /16-02-2020/; print if $f' file instead. Commented Feb 16, 2020 at 19:40
  • Updated, but it could cause problem if 16-02-2020 happen to appear in the text before. Commented Feb 16, 2020 at 19:59