* [Comm] [JT] Find files by content
@ 2005-08-25 12:02 Vitaly Ostanin
2005-08-25 14:48 ` Dmytro O. Redchuk
2005-08-26 4:32 ` Mike Lykov
0 siblings, 2 replies; 7+ messages in thread
From: Vitaly Ostanin @ 2005-08-25 12:02 UTC (permalink / raw)
To: ALT Linux Community
[-- Attachment #1: Type: text/plain, Size: 583 bytes --]
Здравствуйте.
Прошу прощения у тех, кому эти азы неинтересны.
Понадобилось найти файлы по содержимому. Где-то там в дебрях trac
скрывался debug :) Продолжая попытки слезть с mc (и его глючного
поиска), обнаружил вот такую простую команду:
grep -irn debug .
Где
-i - игнорирование регистра символов
-r - рекурсивный обход каталогов
-n - вывод номеров строк
debug - шаблон поиска
. - стартовый каталог поиска
По желанию можно добавлять '-C number' для вывода number строк
вокруг найденной.
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@vzljot.ru
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] [JT] Find files by content
2005-08-25 12:02 [Comm] [JT] Find files by content Vitaly Ostanin
@ 2005-08-25 14:48 ` Dmytro O. Redchuk
2005-08-26 4:32 ` Mike Lykov
1 sibling, 0 replies; 7+ messages in thread
From: Dmytro O. Redchuk @ 2005-08-25 14:48 UTC (permalink / raw)
To: ALT Linux Community
On Thu, Aug 25, 2005 at 04:02:46PM +0400, Vitaly Ostanin wrote:
> По желанию можно добавлять '-C number' для вывода number строк
> вокруг найденной.
Часто пользуюсь '-B number' ('-A number') для number строк Before (After)
найденной.
>
> --
> Regards, Vyt
> mailto: vyt@vzljot.ru
> JID: vyt@vzljot.ru
>
--
_,-=._ /|_/|
`-.} `=._,.-=-._., @ @._,
`._ _,-. ) _,.-'
` G.m-"^m`m' Dmytro O. Redchuk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] [JT] Find files by content
2005-08-25 12:02 [Comm] [JT] Find files by content Vitaly Ostanin
2005-08-25 14:48 ` Dmytro O. Redchuk
@ 2005-08-26 4:32 ` Mike Lykov
2005-08-26 9:19 ` [Comm] " Vitaly Ostanin
1 sibling, 1 reply; 7+ messages in thread
From: Mike Lykov @ 2005-08-26 4:32 UTC (permalink / raw)
To: ALT Linux Community
В сообщении от Четверг 25 Август 2005 17:02 Vitaly Ostanin написал:
> Продолжая попытки слезть с mc (и его глючного
> поиска), обнаружил вот такую простую команду:
> grep -irn debug .
так mc ровно это же и делает ;)
он даже пишет grepping in .. такой-то файл
в чем глючность-то?; )
--
Mike Lykov
Samara, "Vesna" parfum company, System administrator
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-09-01 15:14 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-25 12:02 [Comm] [JT] Find files by content Vitaly Ostanin
2005-08-25 14:48 ` Dmytro O. Redchuk
2005-08-26 4:32 ` Mike Lykov
2005-08-26 9:19 ` [Comm] " Vitaly Ostanin
2005-08-26 9:29 ` Michael Isachenkov
2005-08-26 9:47 ` Vitaly Ostanin
2005-09-01 15:14 ` [Comm] Re: [JT] imap :) Michael Shigorin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git