[pmwiki-users] How to include last lines?

Peter & Melodye Bowers pbowers at pobox.com
Sun Jan 20 11:38:41 CST 2008


>From: bialy663 <bialy663+gmane at g.pl>

> 

>Hi,

> 

>How do I include last 5 lines of specified page? I've modified
$RecentChangesFmt to show updates in table '|| $CurrentTime 

>||[=$ChangeSummary=] || [[{$Group}.{$Name}|{$Namespaced}]]||

>$AuthorLink||' and it's annoying that the newer changes are added at the
end of page (before changes were added at the beginning of page). Other

>solution: How should I force pmwiki to add new changes above the older
once? Thanks

 

This is a classic example of the (:tail .:) markup I mentioned in the
quickly-becoming-reality-due-to-Hans's-vigilance "shelltools" cookbook.

 

In actual shell script it would be "tail -n 5 filename" to get the last 5
lines of the filename.  Presumably in pmwiki-ese it would be something like
(:tail n=5 filename/pattern .:)

 

-Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20080120/00cf87f0/attachment.html 


More information about the pmwiki-users mailing list