InvestorsHub Logo
Post# of 682
Next 10
Followers 41
Posts 12860
Boards Moderated 23
Alias Born 04/16/2001

Re: sarals post# 674

Tuesday, 08/29/2006 11:31:23 AM

Tuesday, August 29, 2006 11:31:23 AM

Post# of 682
sarals & Dimension,

Yes there is something like it out there for Windows/Dos.

Gulp.exe (Freeware)


"it may not be that difficult to write one"

All the code does is:

Read a line from a file, search for a character or string match,
and if found write that line plus any lines prior or after if a number
one through nine is on the command line, rather than a zero.

(i.e.)

> Gulp apple PieRecipes 0
> Gulp apple PieRecipes 3

A string is enclosed in quotes:

> Gulp "mac apple" PieRecipes 0

Rather than have multiple search items on the command line,
the program will prompt you for them, as follows:

Note:
1. the -1 tells Gulp to prompt for the search items
2. strings are not enclosed in quotes
3. signal no more search items by typing in -end-

> Gulp -1 PieRecipes 0
> apple
> pears
> white grapes
>-end-

Note:

This -1 method lets you create a text file of items to search for,
just create a file, for example at the DOS prompt:
> copy con > Inn
> apple
> pears
> white grapes
>-end-
> Ctrl-Z

Now these items can be searched for without typing them in again.
(i.e.) at the DOS prompt using the Unix pipe

> TYPE Inn | Gulp -1 PieRecipes 0 > Results01
> TYPE Inn | Gulp -1 CakeRecipes 0 > Results02

Now once the results are viewed one can edit the Inn file if needed,
or make a copy of it to be modified as another searching try.

WARNING... follows are the Help and Example files generated by Gulp.exe.

These happen whenever Gulp is executed without any parameters to give
hopefully helpful hints on what it needs to execute.

As we all know, instructions are not usually user-friendly.

One needs to actually try it and see whats happens.

> Gulp


> Gulp help


> Gulp example


doug

Lactose Free Milkman

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.