Page 1 of 1

lines with search string

Posted: Wed Aug 14, 2002 3:50 pm
by Sanjay
I am interested in displaying lines above and below a search string.

For example Users of VMS are familiar to this as SEARCH/WINDOW=n command, where the search command displays n lines around the found string line.

How can I do this in text pad?

Thanks
sanjay

Re: lines with search string

Posted: Thu Aug 15, 2002 12:03 am
by Roy Beatty
Nomaaste,

How I miss VMS! The answer is no. The nearest method would be to Find in Files and navigate the links built into the Search Results.

But why not use grep? It can display lines surrounding a matching line. You can get a small footprint Win32 version of the most commuon Unix utilities here: <br>
http://www.weihenstephan.de/~syring/win32/UnxUtils.html

And here's documentation on grep if you need it:<br>
http://www.fsf.org/manual/grep-2.4/grep.html

HTH,
Roy