[pmwiki-users] cookbook "ShellTools" (was: Include specific lines of text on a page)
Patrick R. Michaud
pmichaud at pobox.com
Sun Jan 20 21:20:50 CST 2008
On Sun, Jan 20, 2008 at 07:21:43PM +0000, Hans wrote:
> But seeing this I think a lines=n option is more friendly and useful:
> lines=5 would display the first 5 lines from every page, and
> lines=-5 would display the last 5 lines from every page matching.
> This would be similar to the (:include PageName lines=... :) option
> (but would work on multiple pages).
FWIW, it's been my plan that lines=-5 would mean "the last
five lines of the file", similar to how count=-5 means "the
last five items in a pagelist". I just haven't gotten around
to implementing it (nor had a request for it until now).
More information about the pmwiki-users