Weblog entry #4 for Nilshar
You are using less to read and scroll up/down, search, etc.. a file ? I was too.
Today someone showed me that "less" is able to do tail (maybe most of you know already..).
use your usual :
less <file> to read the file, and if you want to use it as a tail, simply shift+F !
you want to stop the "tail mode" ? ctrl-C and you back to usual less. shift-F again to tail again etc..
Comments on this Entry
[ Send Message | View Steve's Scratchpad | View Weblogs ]
A good tip - I remember it has been mentioned before, along with a few other neat things, in our introduction to less.
[ Parent | Reply to this comment ]
The problem with tips like this is that I forget them...!
--
"It's Not Magic, It's Work"
Adam
[ Parent | Reply to this comment ]
The unix philosophy of "do one thing and do it well" springs to mind.
But given the power of today's machines, it hardly makes sense to remove such features. Good developers architect such things in a highly modular way anyhow.
PJ
[ Parent | Reply to this comment ]