Like "tail"? "less" can tail, too!

By Dusty on March 22, 2009 3:13 PM · No Comments
Like using "tail -f /var/log/apache2/access.log"?  Try this out:

Run this command "less /var/log/apache2/access.log"
Type "/POST" to find all "POST" matches (it highlights them)
Press "F" (yes, CAPITAL F, not lowercase), which then follows.

This will follow the file, highlighting "POST".  I never knew this was possible in "less", but it is.  Now you get highlighted matching while following.

No TrackBacks

TrackBack URL: http://www.dustywilson.com/mt-tb.cgi/32

Leave a comment