Text Processing: Recursive search and replace: Difference between revisions
From WikiMLT
m Стадий: 3 [Фаза:Разработване, Статус:Разавторизиран]; Категория:Linux Server |
m Spas moved page Text Processing: Grep - recursive search to Text Processing: Recursive search and replace without leaving a redirect |
(No difference)
|
Revision as of 10:23, 4 August 2022
grep -rni 'string or regexp' *
Where:
*
– will match to all files and directories (which doesn't start with.
, alternatively you may need to use./
to match everything within the current directory;-r
,–recursive
– in this case works together with*
(or./
);-n
– output the line number where the match is found,-i
,–ignore-case
– do case insensitive match.