grep? no.

Jun. 11th, 2003 01:18 pm
109: (Default)
[personal profile] 109
имеется много файлов, находимых по паттерну, в которых нужно найти строки, содержащие подстроку А и расположенные между строками, содержащими подстроки B и С. ответ должен обязательно содержать file name + line number, копия строки тоже желательна. какой тул поможет мне это сделать с минимальным геморроем?
From: [identity profile] msh.livejournal.com
C:\>find /?
Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[ ...]]

/V Displays all lines NOT containing the specified string.
/C Displays only the count of lines containing the string.
/N Displays line numbers with the displayed lines.
/I Ignores the case of characters when searching for the string.
"string" Specifies the text string to find.
[drive:][path]filename
Specifies a file or files to search.

If a path is not specified, FIND searches the text typed at the prompt
or piped from another command.
From: [identity profile] caseq.livejournal.com
Миша, ну зачем передергивать?! Ясно же, что первый шаг после установки NT, необходимый для превращения ее в систему, под которой удобно работать -- это не голую бабу на десктоп вешать, а поставить Cygwin и утащить его в путях вперед system32.
From: [identity profile] 109.livejournal.com
я поставил UnxUtils, они вроде без цыгвина работают. или там не всё нужное есть?

Profile

109: (Default)
109

March 2019

S M T W T F S
     12
3456789
101112131415 16
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags