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*

5
  • 1
    Thanks for answering, the problem is that I need to keep only the strings that are present in all the files, let's say if it is present in 9 files over 10 it has to be discarded. Commented Sep 25, 2015 at 15:35
  • @Eleonora sorry about that, try the updated answer. Commented Sep 25, 2015 at 15:52
  • 1
    rev's definitely not needed here: sed '/^[[:blank:]]\{1,\}20 /!d;//s///' Commented Sep 25, 2015 at 16:30
  • @don_crissti I find the two revs clearer and simpler. Commented Sep 25, 2015 at 17:24
  • @Terdon thank you very much, this is exactly what I needed. It works perfectly. Commented Sep 28, 2015 at 7:02