Geany is my main text editor.
I am looking for a way to open a text file where it shows the last few lines of the file AND be able to edit such file.
That would be good for looking at the end of long log files.
Preferably with Geany.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
-l) command-line option specifies which line number to go to after opening the file.
Presumably, specifying a very high number like 1 billion (1000000000) should ensure it goes to the last line each time.
Since comments are so difficult to edit, I did this.
#!/bin/bash # Ubuntu_Mate 18.04 LTS # # Look at end of text file using Geany. tail not needed. # # MUCH HELP from thomasrutter at https://askubuntu.com/ # # # syslog is in /var/log cd /home/andy/Downloads # Send syslog to text file cat /var/log/syslog > syslog.txt # using geany, open syslog at the end geany -l 10000000 syslog.txt
"It is always too soon to quit."