lines with search string

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Sanjay

lines with search string

Post 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
Roy Beatty

Re: lines with search string

Post 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
Post Reply