[Geany-Users] Open file at end - 50 lines

Andrew Kennedy andrew_kennedy7 at xxxxx
Sun Aug 16 00:44:39 UTC 2020


 Thanks.

This is MUCH shorter.

tail -n 50 /var/log/syslog > end_syslog.txt
geany end_syslog.txt

Sent via personal computer
"It is always too soon to quit."


     On Saturday, August 15, 2020, 07:19:42 PM CDT, Matthew Brush <mbrush at codebrainz.ca> wrote:  
 
 On 2020-08-15 3:33 p.m., Andrew Kennedy via Users wrote:
> I know this will display at line 900.
> 
> However the syslog file is variable in length.
> 
> geany -l 900 syslog.txt
> 
> Can I have geany display just the last 50 lines?
> 
> Thanks.
> 

I'm not sure it can be done directly using Geany, but if you are on a 
POSIX-ey OS with a BASH-like shell you can do something as described in 
this pastebin:

https://geany.org/p/q1SUz/

I tested it on Ubuntu 20.04 and it works OK.

Regards,
Matthew Brush
_______________________________________________
Users mailing list
Users at lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/users/attachments/20200816/0832b62a/attachment.htm>


More information about the Users mailing list