[pmwiki-users] cookbook "ShellTools" (was: Include specific lines of text on a page)

Hans design5 at softflow.co.uk
Sun Jan 20 14:47:50 CST 2008


Sunday, January 20, 2008, 7:21:43 PM, 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).

I updated the recipe and added a lines= parameter:
lines=n - display first n lines;
lines=-n display last n lines;
lines=n..m display lines from n to m.

http://www.pmwiki.org/wiki/Cookbook/TextExtract


  ~Hans




More information about the pmwiki-users mailing list