logo

Crowdly

The grep command prints out lines of a file that match a specified pattern. The ...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

The grep command prints out lines of a file that match a specified pattern. The '-v' flag inverts the behaviour so the grep command prints out lines of a file that do not match the specified pattern.

Given a file foo.txt, suppose

  grep -v hello foo.txt

prints 5 lines of text, and

  grep hello foo.txt

prints 3 lines of text,

then how many lines are there in the file foo.txt?

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.gla.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!