Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Название темы: Поиск grep-ом
Показать сообщение отдельно

Аватара для CyberDaemon

DOOMer


Сообщения: 3254
Благодарности: 438

Профиль | Отправить PM | Цитировать


Цитата man grep:
-w, --word-regexp
Select only those lines containing matches that form whole words. The test is that the matching substring must either
be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must be either at the
end of the line or followed by a non-word constituent character. Word-constituent characters are letters, digits, and
the underscore.
find /data | grep -vw '/data/media'

Цитата:
/data/
/data/mediaservice

-------
"640 K ought to be enough for anybody" Bill Gates, 1981


Отправлено: 16:58, 03-12-2017 | #2

Название темы: Поиск grep-ом